rom
case rom:
if (state->dev.romaddr != ((unsigned long) rom.rom_segment << 4)) {
&rom, /* rom_info */
rom = *((struct rom_info *)ROM_INFO_LOCATION);
struct rom_info rom;
undi.rom = ( rom_t * ) phys_to_virt ( ptr );
if ( undi.rom->signature == ROM_SIGNATURE ) {
if ( undi.rom->pcir_off == 0 ) {
pcir_header = (pcir_header_t*)( ( void * ) undi.rom +
undi.rom->pcir_off );
if ( undi.rom->pnp_off == 0 ) {
pnp_header = (pnp_header_t*)( ( void * ) undi.rom +
undi.rom->pnp_off );
(void*)undi.rom+pnp_header->product_str_off,
(void*)undi.rom+pnp_header->manuf_str_off );
undi.rom = NULL;
if ( undi.rom->undi_rom_id_off == 0 ) {
( (void *)undi.rom + undi.rom->undi_rom_id_off );
pxenv_exit = _undi_call ( SEGMENT( undi.rom ),
rom_t *rom;
ebus_rom_t rom;
bzero(&rom, sizeof (rom));
rom.hmep = hmep;
rom.bus = PCI_REG_BUS_G(regs[0]);
rom.dev = PCI_REG_DEV_G(regs[0]);
hmep->hme_devno = rom.dev;
rom.parent = ddi_get_parent(dip);
ddi_walk_devs(ddi_root_node(), hme_mapebusrom, &rom);
if (rom.acch) {
hmep->hme_romh = rom.acch;
hmep->hme_romp = (unsigned char *)rom.romp;
ebus_rom_t *rom = arg;
struct hme *hmep = rom->hmep;
if (dip == rom->parent) {
if (ddi_get_parent(dip) != rom->parent)
if ((PCI_REG_BUS_G(reg) != rom->bus) ||
(PCI_REG_DEV_G(reg) != rom->dev) ||
(void) ddi_regs_map_setup(dip, 1, &rom->romp, 0, 0, &hmep->hme_dev_attr,
&rom->acch);
} rom;