/broadcom-cfe-1.4.2/cfe/arch/mips/board/swarm/src/ |
H A D | dev_ide.c | 193 idecommon_t *softc = NULL; local 213 softc = (idecommon_t *) KMALLOC(sizeof(idecommon_t),0); 216 if (!softc || !disp) { 217 if (softc) KFREE(softc); 222 softc->idecommon_addr = probe_a; 223 softc->idecommon_unit = unit; 224 softc->idecommon_deferprobe = 0; 226 disp->ref = softc; 227 disp->baseaddr = softc [all...] |
/broadcom-cfe-1.4.2/cfe/arch/mips/chipset/bcmsb/src/ |
H A D | dev_ide.c | 194 idecommon_t *softc = NULL; local 214 softc = (idecommon_t *) KMALLOC(sizeof(idecommon_t),0); 217 if (!softc || !disp) { 218 if (softc) KFREE(softc); 223 softc->idecommon_addr = probe_a; 224 softc->idecommon_unit = unit; 225 softc->idecommon_deferprobe = 0; 227 disp->ref = softc; 228 disp->baseaddr = softc [all...] |
/broadcom-cfe-1.4.2/cfe/dev/ |
H A D | dev_bcm1250.c | 116 bcm1250_t *softc; local 120 softc = (bcm1250_t *) KMALLOC(sizeof(bcm1250_t), 0); 121 if (softc == NULL) { 126 softc->tag = tag; 130 softc->mem_base = pa; 137 softc->mailbox = pa; 139 softc->downloaded = 0; 141 cfe_attach(drv, softc, NULL, descr); 175 bcm1250_t *softc = ctx->dev_softc; local 176 physaddr_t cmd_p = softc 206 bcm1250_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_atapi.c | 170 idecommon_t *softc; local 182 softc = (idecommon_t *) KMALLOC(sizeof(idecommon_t),0); 185 if (softc && disp) { 186 softc->idecommon_addr = probe_a; 187 softc->idecommon_unit = probe_b; 189 disp->ref = softc; 190 disp->baseaddr = softc->idecommon_addr; 191 softc->idecommon_dispatch = disp; 201 res = idecommon_devprobe(softc); 203 KFREE(softc); [all...] |
H A D | dev_ide_common.c | 786 * softc - IDE interface
793 static int idecommon_diagnostic(idecommon_t *softc)
argument 795 if (idecommon_waitnotbusy(softc) < 0) return -1;
796 IDE_WRITEREG8(softc,IDE_REG_DRVHD,(softc->idecommon_unit<<4));
797 if (idecommon_waitnotbusy(softc) < 0) return -1;
799 IDE_WRITEREG8(softc,IDE_REG_COMMAND,IDE_CMD_DIAGNOSTIC);
800 if (idecommon_waitnotbusy(softc) < 0) return -1;
803 idecommon_dumpregs(softc);
843 * idecommon_devprobe(softc)
858 idecommon_devprobe(idecommon_t *softc,int noisy) argument 983 idecommon_t *softc = ctx->dev_softc; local 1011 idecommon_t *softc = ctx->dev_softc; local 1107 idecommon_t *softc = ctx->dev_softc; local 1185 idecommon_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_ds1743.c | 163 ds1743_clock_t *softc; local 166 softc = (ds1743_clock_t *) KMALLOC(sizeof(ds1743_clock_t),0); 174 softc->clock_base = probe_a; 178 cfe_attach(drv,softc,NULL,descr); 189 * ctx - device context (can obtain our softc here) 198 ds1743_clock_t *softc = ctx->dev_softc; local 201 clockbase = softc->clock_base; 219 * ctx - device context (can obtain our softc here) 230 ds1743_clock_t *softc = ctx->dev_softc; local 236 clockbase = softc 275 ds1743_clock_t *softc = ctx->dev_softc; local 466 ds1743_nvram_t *softc; local 529 ds1743_nvram_t *softc = ctx->dev_softc; local 591 ds1743_nvram_t *softc = ctx->dev_softc; local 632 ds1743_nvram_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_m48txx.c | 169 m48txx_clock_t *softc; local 172 softc = (m48txx_clock_t *) KMALLOC(sizeof(m48txx_clock_t),0); 180 softc->clock_base = probe_a; 184 cfe_attach(drv,softc,NULL,descr); 195 * ctx - device context (can obtain our softc here) 204 m48txx_clock_t *softc = ctx->dev_softc; local 207 clockbase = softc->clock_base; 224 * ctx - device context (can obtain our softc here) 235 m48txx_clock_t *softc = ctx->dev_softc; local 240 clockbase = softc 290 m48txx_clock_t *softc = ctx->dev_softc; local 482 m48txx_nvram_t *softc; local 545 m48txx_nvram_t *softc = ctx->dev_softc; local 607 m48txx_nvram_t *softc = ctx->dev_softc; local 648 m48txx_nvram_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_smbus_x1227eeprom.c | 266 sb1250_x1227eeprom_t *softc; local 269 softc = (sb1250_x1227eeprom_t *) KMALLOC(sizeof(sb1250_x1227eeprom_t),0); 277 softc->smbus_channel = SMBUS_CHANNEL((int)probe_a); 278 softc->env_offset = 0; 279 softc->env_size = X1227_EEPROM_SIZE; 283 cfe_attach(drv,softc,NULL,descr); 295 * ctx - device context (can obtain our softc here) 304 sb1250_x1227eeprom_t *softc = ctx->dev_softc; local 318 b = smbus_readrtc(softc->smbus_channel, 328 b = smbus_readrtc(softc 376 sb1250_x1227eeprom_t *softc = ctx->dev_softc; local 441 sb1250_x1227eeprom_t *softc = ctx->dev_softc; local 497 sb1250_x1227eeprom_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_smbus_x1240eeprom.c | 262 sb1250_x1240eeprom_t *softc; local 265 softc = (sb1250_x1240eeprom_t *) KMALLOC(sizeof(sb1250_x1240eeprom_t),0); 273 softc->smbus_channel = SMBUS_CHANNEL((int)probe_a); 274 softc->env_offset = 0; 275 softc->env_size = X1241_EEPROM_SIZE; 279 cfe_attach(drv,softc,NULL,descr); 291 * ctx - device context (can obtain our softc here) 300 sb1250_x1240eeprom_t *softc = ctx->dev_softc; local 314 b = smbus_readrtc(softc->smbus_channel, 324 b = smbus_readrtc(softc 372 sb1250_x1240eeprom_t *softc = ctx->dev_softc; local 437 sb1250_x1240eeprom_t *softc = ctx->dev_softc; local 493 sb1250_x1240eeprom_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_ide_pci.c | 249 idecommon_t *softc; local 307 softc = (idecommon_t *) KMALLOC(sizeof(idecommon_t),0); 310 if (!softc || !disp) { 311 if (softc) KFREE(softc); 317 softc->idecommon_addr = reg; 318 disp->ref = softc; 319 disp->baseaddr = softc->idecommon_addr; 320 softc->idecommon_deferprobe = 0; 321 softc [all...] |
H A D | dev_smbus_switch.c | 221 switch_t *softc; local 224 softc = (switch_t *) KMALLOC(sizeof(switch_t),0); 232 softc->smbus_channel = SMBUS_CHANNEL((int)probe_a); 236 cfe_attach(drv,softc,NULL,descr); 247 * ctx - device context (can obtain our softc here) 256 switch_t *softc = ctx->dev_softc; local 259 b = smbus_readbyte(softc->smbus_channel, 262 b = smbus_writebyte(softc->smbus_channel, 276 * ctx - device context (can obtain our softc here) 295 * ctx - device context (can obtain our softc her [all...] |
H A D | dev_ide_frodo.c | 292 idecommon_t *softc; local 352 softc = (idecommon_t *) KMALLOC(sizeof(idecommon_t),0); 355 if (!softc || !disp) { 356 if (softc) KFREE(softc); 361 softc->idecommon_addr = reg + (unit * 0x100); 362 disp->ref = softc; 363 disp->baseaddr = softc->idecommon_addr; 364 softc->idecommon_deferprobe = 0; 365 softc [all...] |
H A D | dev_ds17887clock.c | 182 ds17887_clock_t *softc; local 185 softc = (ds17887_clock_t *) KMALLOC(sizeof(ds17887_clock_t),0); 193 softc->clock_base = probe_a; 197 cfe_attach(drv,softc,NULL,descr); 208 * ctx - device context (can obtain our softc here) 217 ds17887_clock_t *softc = ctx->dev_softc; local 221 clockbase = softc->clock_base; 247 * ctx - device context (can obtain our softc here) 257 ds17887_clock_t *softc = ctx->dev_softc; local 262 clockbase = softc 295 ds17887_clock_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_smbus_x1227clock.c | 263 x1227_clock_t *softc; local 266 softc = (x1227_clock_t *) KMALLOC(sizeof(x1227_clock_t),0); 274 softc->smbus_channel = SMBUS_CHANNEL((int)probe_a); 278 cfe_attach(drv,softc,NULL,descr); 290 * ctx - device context (can obtain our softc here) 299 x1227_clock_t *softc = ctx->dev_softc; local 302 cfe_smbus_channel_t *chan = softc->smbus_channel; 357 * ctx - device context (can obtain our softc here) 368 x1227_clock_t *softc = ctx->dev_softc; local 371 cfe_smbus_channel_t *chan = softc 426 x1227_clock_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_smbus_x1241clock.c | 257 x1241_clock_t *softc; local 260 softc = (x1241_clock_t *) KMALLOC(sizeof(x1241_clock_t),0); 268 softc->smbus_channel = SMBUS_CHANNEL((int)probe_a); 272 cfe_attach(drv,softc,NULL,descr); 284 * ctx - device context (can obtain our softc here) 293 x1241_clock_t *softc = ctx->dev_softc; local 296 cfe_smbus_channel_t *chan = softc->smbus_channel; 351 * ctx - device context (can obtain our softc here) 362 x1241_clock_t *softc = ctx->dev_softc; local 365 cfe_smbus_channel_t *chan = softc 420 x1241_clock_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_smbus_m41t81clock.c | 276 m41t81_clock_t *softc; local 280 softc = (m41t81_clock_t *) KMALLOC(sizeof(m41t81_clock_t),0); 288 softc->smbus_channel = SMBUS_CHANNEL((int)probe_a); 292 cfe_attach(drv,softc,NULL,descr); 297 byte = time_readrtc(softc->smbus_channel,M41T81_CCR_ADDRESS,M41T81REG_AHR); 299 time_writertc(softc->smbus_channel,M41T81_CCR_ADDRESS,M41T81REG_AHR, byte); 311 * ctx - device context (can obtain our softc here) 320 m41t81_clock_t *softc = ctx->dev_softc; local 323 cfe_smbus_channel_t *chan = softc->smbus_channel; 348 * ctx - device context (can obtain our softc her 359 m41t81_clock_t *softc = ctx->dev_softc; local 416 m41t81_clock_t *softc = ctx->dev_softc; local [all...] |
/broadcom-cfe-1.4.2/cfe/arch/mips/chipset/sibyte/src/ |
H A D | dev_sb1250_pcmcia.c | 237 idecommon_t *softc = slot->idecommon; local 242 oldpresent = (softc->idecommon_flags & PCMCIA_CARDPRESENT) ? 1 : 0; 246 if (!TIMER_RUNNING(softc->timer)) { 247 TIMER_SET(softc->timer,10); 251 if (!TIMER_EXPIRED(softc->timer)) return; 259 softc->idecommon_flags |= PCMCIA_CARDPRESENT; 265 softc->idecommon_flags &= ~PCMCIA_CARDPRESENT; 268 TIMER_CLEAR(softc->timer); 291 idecommon_t *softc; local 302 softc 360 idecommon_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_sb1250_ethernet.c | 2024 static void sb1250_ether_reset(void *softc); 2076 sbeth_t *softc; local 2079 softc = (sbeth_t *) KMALLOC(sizeof(sbeth_t),0); 2081 if (softc) { 2082 sbeth_initctx(softc,probe_a,softc); 2084 enet_parse_hwaddr((char *) probe_ptr,softc->sbe_hwaddr); 2087 softc->sbe_hwaddr); 2089 sbeth_mii_findphy(softc); 2090 sbeth_mii_setup(softc); 2113 sbeth_t *softc = ctx->dev_softc; local 2148 sbeth_t *softc = ctx->dev_softc; local 2219 sbeth_t *softc = ctx->dev_softc; local 2263 sbeth_t *softc = ctx->dev_softc; local 2288 sbeth_t *softc = ctx->dev_softc; local 2624 sbeth_t *softc = ctx->dev_softc; local 2695 sbeth_t *softc = ctx->dev_softc; local 2721 sbeth_t *softc = ctx->dev_softc; local 2754 sb1250_ether_reset(void *softc) argument [all...] |
H A D | sb1250_mii.c | 108 sb1250_mii_softc_t *softc; local 115 chan->softc = (void *) (chan+1); 117 softc = chan->softc; 118 softc->base = probe_a; 119 softc->default_phyaddr = probe_b; 120 softc->sbe_mdio = PHY_PORT(softc->base+R_MAC_MDIO); 132 sb1250_mii_softc_t *s = chan->softc; 182 sb1250_mii_softc_t *s = chan->softc; [all...] |
/broadcom-cfe-1.4.2/cfe/usb/ |
H A D | usbmass.c | 276 usbmass_softc_t *softc; local 278 softc = (usbmass_softc_t *) dev->ud_private; 280 usb_clear_stall(dev,softc->umass_inpipe); 306 usbmass_softc_t *softc; local 309 softc = (usbmass_softc_t *) dev->ud_private; 324 PUTCBWFIELD(cbw,dCBWTag,softc->umass_curtag); 340 softc->umass_curtag++; 346 res = usb_make_sync_request(dev,softc->umass_outpipe,(uint8_t *) cbw, 354 res = usb_make_sync_request(dev,softc->umass_inpipe,sector, 362 res = usb_make_sync_request(dev,softc 397 usbmass_softc_t *softc; local 509 usbmass_softc_t *softc; local 601 usbmass_softc_t *softc; local 710 usbmass_softc_t *softc; local 807 usbmass_softc_t *softc; local 862 usbdisk_t *softc; local 897 usbdisk_t *softc = ctx->dev_softc; local 931 usbdisk_t *softc = ctx->dev_softc; local 1035 usbdisk_t *softc = ctx->dev_softc; local 1116 usbdisk_t *softc = ctx->dev_softc; local [all...] |
H A D | usbhub.c | 308 * usbhub_queue_intreq(dev,softc) 315 * softc - hub-specific data 321 static void usbhub_queue_intreq(usbdev_t *dev,usbhub_softc_t *softc) argument 326 softc->uhub_ipipe, 327 softc->uhub_imsg,softc->uhub_ipipemps, 357 usbhub_softc_t *softc; local 365 softc = KMALLOC(sizeof(usbhub_softc_t),0); 366 memset(softc,0,sizeof(usbhub_softc_t)); 367 softc 666 usbhub_softc_t *softc; local [all...] |
H A D | usbhid.c | 309 * uhid - the hid softc. 349 * uhid - the hid softc 418 * uhid - the hid softc 539 * usbhid_queue_intreq(dev,softc) 548 * softc - the usb hid softc 554 static void usbhid_queue_intreq(usbdev_t *dev,usbhid_softc_t *softc) argument 559 softc->uhid_ipipe, 560 softc->uhid_imsg,softc 589 usbhid_softc_t *softc; local [all...] |
H A D | usbeth.h | 184 int usbeth_register(usbeth_disp_t *disp,void *softc); 185 void usbeth_unregister(void *softc);
|
/broadcom-cfe-1.4.2/cfe/include/ |
H A D | cfe_device.h | 95 void (*dev_reset)(void *softc); /* called when device is closed, so no devctx_t */ 111 void cfe_attach(cfe_driver_t *devname,void *softc,char *bootinfo,char *description); 112 int cfe_attach_idx(cfe_driver_t *drv,int idx,void *softc,char *bootinfo,char *description);
|
/broadcom-cfe-1.4.2/cfe/main/ |
H A D | cfe_attach.c | 163 * cfe_attach_idx(drv,idx,softc,bootinfo,description) 172 * softc - Unique information maintained for this device 185 int cfe_attach_idx(cfe_driver_t *drv,int idx,void *softc, argument 206 dev->dev_softc = softc; 221 * cfe_attach(drv,softc,bootinfo,description 229 * softc - Unique information maintained for this device 240 void cfe_attach(cfe_driver_t *drv,void *softc, argument 255 res = cfe_attach_idx(drv,idx,softc,bootinfo,description);
|