/drivers/mca/ |
D | mca-legacy.c | 38 struct mca_device *mca_dev; member 47 struct mca_device *mca_dev = to_mca_device(dev); in mca_find_adapter_callback() local 49 if(mca_dev->pos_id != info->id) in mca_find_adapter_callback() 52 if(mca_dev->slot < info->slot) in mca_find_adapter_callback() 55 if(!info->mca_dev || info->mca_dev->slot >= mca_dev->slot) in mca_find_adapter_callback() 56 info->mca_dev = mca_dev; in mca_find_adapter_callback() 83 info.mca_dev = NULL; in mca_find_adapter() 88 if(info.mca_dev == NULL) in mca_find_adapter() 91 if(info.mca_dev->status != MCA_ADAPTER_DISABLED) in mca_find_adapter() 97 info.slot = info.mca_dev->slot + 1; in mca_find_adapter() [all …]
|
D | mca-proc.c | 35 static int get_mca_info_helper(struct mca_device *mca_dev, char *page, int len) in get_mca_info_helper() argument 41 mca_dev ? mca_dev->pos[j] : 0xff); in get_mca_info_helper() 42 len += sprintf(page+len, " %s\n", mca_dev ? mca_dev->name : ""); in get_mca_info_helper() 52 struct mca_device *mca_dev; in get_mca_info() local 56 mca_dev = mca_find_device_by_slot(i); in get_mca_info() 59 len = get_mca_info_helper(mca_dev, page, len); in get_mca_info() 64 mca_dev = mca_find_device_by_slot(MCA_INTEGVIDEO); in get_mca_info() 66 len = get_mca_info_helper(mca_dev, page, len); in get_mca_info() 70 mca_dev = mca_find_device_by_slot(MCA_INTEGSCSI); in get_mca_info() 72 len = get_mca_info_helper(mca_dev, page, len); in get_mca_info() [all …]
|
D | mca-device.c | 43 unsigned char mca_device_read_stored_pos(struct mca_device *mca_dev, int reg) in mca_device_read_stored_pos() argument 48 return mca_dev->pos[reg]; in mca_device_read_stored_pos() 63 unsigned char mca_device_read_pos(struct mca_device *mca_dev, int reg) in mca_device_read_pos() argument 65 struct mca_bus *mca_bus = to_mca_bus(mca_dev->dev.parent); in mca_device_read_pos() 67 return mca_bus->f.mca_read_pos(mca_dev, reg); in mca_device_read_pos() 69 return mca_dev->pos[reg]; in mca_device_read_pos() 88 void mca_device_write_pos(struct mca_device *mca_dev, int reg, in mca_device_write_pos() argument 91 struct mca_bus *mca_bus = to_mca_bus(mca_dev->dev.parent); in mca_device_write_pos() 93 mca_bus->f.mca_write_pos(mca_dev, reg, byte); in mca_device_write_pos() 110 int mca_device_transform_irq(struct mca_device *mca_dev, int irq) in mca_device_transform_irq() argument [all …]
|
D | mca-bus.c | 48 struct mca_device *mca_dev = to_mca_device (dev); in mca_bus_match() local 55 if (mca_ids[i] == mca_dev->pos_id) { in mca_bus_match() 56 mca_dev->index = i; in mca_bus_match() 64 if (mca_drv->integrated_id && mca_dev->pos_id == in mca_bus_match() 66 mca_dev->index = i; in mca_bus_match() 81 struct mca_device *mca_dev = to_mca_device(dev); in mca_show_pos_id() local 84 if(mca_dev->pos_id < MCA_DUMMY_POS_START) in mca_show_pos_id() 85 len = sprintf(buf, "%04x\n", mca_dev->pos_id); in mca_show_pos_id() 94 struct mca_device *mca_dev = to_mca_device(dev); in mca_show_pos() local 97 len += sprintf(buf+len, "%02x ", mca_dev->pos[j]); in mca_show_pos() [all …]
|
/drivers/scsi/ |
D | NCR_D700.c | 251 struct mca_device *mca_dev = to_mca_device(dev); in NCR_D700_probe() local 252 int slot = mca_dev->slot; in NCR_D700_probe() 259 pos4 = mca_device_read_pos(mca_dev, 4); in NCR_D700_probe() 261 mca_device_write_pos(mca_dev, 4, pos4); in NCR_D700_probe() 263 mca_device_write_pos(mca_dev, 6, 9); in NCR_D700_probe() 264 pos3j = mca_device_read_pos(mca_dev, 3); in NCR_D700_probe() 265 mca_device_write_pos(mca_dev, 6, 10); in NCR_D700_probe() 266 pos3k = mca_device_read_pos(mca_dev, 3); in NCR_D700_probe() 267 mca_device_write_pos(mca_dev, 6, 0); in NCR_D700_probe() 268 pos3a = mca_device_read_pos(mca_dev, 3); in NCR_D700_probe() [all …]
|
D | sim710.c | 190 struct mca_device *mca_dev = to_mca_device(dev); in sim710_mca_probe() local 191 int slot = mca_dev->slot; in sim710_mca_probe() 195 short id = sim710_mca_id_table[mca_dev->index]; in sim710_mca_probe() 203 pos[0] = mca_device_read_stored_pos(mca_dev, 2); in sim710_mca_probe() 204 pos[1] = mca_device_read_stored_pos(mca_dev, 3); in sim710_mca_probe() 205 pos[2] = mca_device_read_stored_pos(mca_dev, 4); in sim710_mca_probe() 258 mca_device_set_name(mca_dev, name); in sim710_mca_probe() 259 mca_device_set_claim(mca_dev, 1); in sim710_mca_probe() 260 base = mca_device_transform_ioport(mca_dev, base); in sim710_mca_probe() 261 irq_vector = mca_device_transform_irq(mca_dev, irq_vector); in sim710_mca_probe()
|
D | NCR_Q720.c | 142 struct mca_device *mca_dev = to_mca_device(dev); in NCR_Q720_probe() local 143 int slot = mca_dev->slot; in NCR_Q720_probe() 155 pos2 = mca_device_read_pos(mca_dev, 2); in NCR_Q720_probe() 158 mca_device_write_pos(mca_dev, 2, pos2); in NCR_Q720_probe() 169 io_base = mca_device_transform_ioport(mca_dev, io_base); in NCR_Q720_probe() 255 irq = mca_device_transform_irq(mca_dev, irq); in NCR_Q720_probe() 305 mca_device_set_claim(mca_dev, 1); in NCR_Q720_probe() 306 mca_device_set_name(mca_dev, "NCR_Q720"); in NCR_Q720_probe()
|
D | ibmmca.c | 1510 struct mca_device *mca_dev = to_mca_device(dev); in ibmmca_probe() local 1511 const char *description = ibmmca_description[mca_dev->index]; in ibmmca_probe() 1543 pos[j] = mca_device_read_pos(mca_dev, j); in ibmmca_probe() 1558 if (mca_dev->slot == MCA_INTEGSCSI && in ibmmca_probe() 1571 if ((mca_dev->index == IBM_SCSI2_FW) && (pos[6] != 0)) { in ibmmca_probe() 1578 if (mca_dev->index == IBM_SCSI2_FW) { in ibmmca_probe() 1583 if ((mca_dev->index == IBM_SCSI2_FW) && in ibmmca_probe() 1597 if (mca_dev->slot == MCA_INTEGSCSI) in ibmmca_probe() 1629 special(shpnt) = mca_dev->index; /* important assignment or else crash! */ in ibmmca_probe() 1655 check_devices(shpnt, mca_dev->index); /* call by value, using the global variable hosts */ in ibmmca_probe() [all …]
|
/drivers/net/ |
D | smc-mca.c | 207 struct mca_device *mca_dev = to_mca_device(gen_dev); in ultramca_probe() local 208 char slot = mca_dev->slot; in ultramca_probe() 211 int adapter = mca_dev->index; in ultramca_probe() 235 pos2 = mca_device_read_stored_pos(mca_dev, 2); /* io_addr */ in ultramca_probe() 236 pos3 = mca_device_read_stored_pos(mca_dev, 3); /* shared mem */ in ultramca_probe() 237 pos4 = mca_device_read_stored_pos(mca_dev, 4); /* ROM bios addr range */ in ultramca_probe() 238 pos5 = mca_device_read_stored_pos(mca_dev, 5); /* irq, media and RIPL */ in ultramca_probe() 250 switch (mca_dev->index) { in ultramca_probe() 285 mca_device_set_name(mca_dev, smc_mca_adapter_names[adapter]); in ultramca_probe() 286 mca_device_set_claim(mca_dev, 1); in ultramca_probe() [all …]
|