Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/bhnd_subr.c
Show First 20 Lines • Show All 1,308 Lines • ▼ Show 20 Lines | |||||
bhnd_bus_generic_read_board_info(device_t dev, device_t child, | bhnd_bus_generic_read_board_info(device_t dev, device_t child, | ||||
struct bhnd_board_info *info) | struct bhnd_board_info *info) | ||||
{ | { | ||||
int error; | int error; | ||||
OPT_BHND_GV(info->board_vendor, BOARDVENDOR, 0); | OPT_BHND_GV(info->board_vendor, BOARDVENDOR, 0); | ||||
OPT_BHND_GV(info->board_type, BOARDTYPE, 0); /* srom >= 2 */ | OPT_BHND_GV(info->board_type, BOARDTYPE, 0); /* srom >= 2 */ | ||||
REQ_BHND_GV(info->board_rev, BOARDREV); | REQ_BHND_GV(info->board_rev, BOARDREV); | ||||
REQ_BHND_GV(info->board_srom_rev,SROMREV); | OPT_BHND_GV(info->board_srom_rev,SROMREV, 0); /* missing in | ||||
some SoC | |||||
NVRAM */ | |||||
REQ_BHND_GV(info->board_flags, BOARDFLAGS); | REQ_BHND_GV(info->board_flags, BOARDFLAGS); | ||||
OPT_BHND_GV(info->board_flags2, BOARDFLAGS2, 0); /* srom >= 4 */ | OPT_BHND_GV(info->board_flags2, BOARDFLAGS2, 0); /* srom >= 4 */ | ||||
OPT_BHND_GV(info->board_flags3, BOARDFLAGS3, 0); /* srom >= 11 */ | OPT_BHND_GV(info->board_flags3, BOARDFLAGS3, 0); /* srom >= 11 */ | ||||
return (0); | return (0); | ||||
} | } | ||||
#undef BHND_GV | #undef BHND_GV | ||||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |