Changeset View
Changeset View
Standalone View
Standalone View
head/tools/tools/ath/athprom/athprom.c
Show All 35 Lines | |||||
#include "ah_eeprom_v3.h" | #include "ah_eeprom_v3.h" | ||||
#include "ah_eeprom_v14.h" | #include "ah_eeprom_v14.h" | ||||
#define IS_VERS(op, v) (eeprom.ee_version op (v)) | #define IS_VERS(op, v) (eeprom.ee_version op (v)) | ||||
#include <getopt.h> | #include <getopt.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <err.h> | #include <err.h> | ||||
#include <paths.h> | |||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <ctype.h> | #include <ctype.h> | ||||
#ifndef DIR_TEMPLATE | #ifndef DIR_TEMPLATE | ||||
#define DIR_TEMPLATE "/usr/local/libdata/athprom" | #define DIR_TEMPLATE _PATH_LOCALBASE "/libdata/athprom" | ||||
#endif | #endif | ||||
struct ath_diag atd; | struct ath_diag atd; | ||||
int s; | int s; | ||||
const char *progname; | const char *progname; | ||||
union { | union { | ||||
HAL_EEPROM legacy; /* format v3.x ... v5.x */ | HAL_EEPROM legacy; /* format v3.x ... v5.x */ | ||||
struct ar5416eeprom v14; /* 11n format v14.x ... */ | struct ar5416eeprom v14; /* 11n format v14.x ... */ | ||||
▲ Show 20 Lines • Show All 922 Lines • Show Last 20 Lines |