/broadcom-cfe-1.4.2/cfe/dev/ |
H A D | dev_flash.c | 70 #define GETCFIBYTE(softc,offset) READFLASH_K1(softc,((offset) << (softc->flashdrv_widemode))) 148 #define FLASHOP_ERASE_SECTOR(softc,sect) (*((softc)->flashdrv_ops->erasesector))((softc),(sect)) 149 #define FLASHOP_WRITE_BLOCK(softc,off,buf,len) (*((softc)->flashdrv_ops->writeblk))((softc),(off),(buf),(len)) 156 static int flash_sector_query(flashdrv_t *softc,flash_sector_ 262 amd_flash_write_byte(flashdrv_t *softc,int offset, unsigned char val) argument 312 amd_flash_write_block(flashdrv_t *softc,int offset,hsaddr_t buf,int len) argument 345 amd_flash_erase_sector(flashdrv_t *softc,int offset) argument 389 intel_flash_write_byte(flashdrv_t *softc, int offset, unsigned char val) argument 427 intel_flash_write_word(flashdrv_t *softc, int offset, unsigned short val) argument 466 intel_flash_write_block(flashdrv_t *softc,int offset,hsaddr_t buf,int len) argument 513 intel_flash_erase_sector(flashdrv_t *softc,int offset) argument 544 flash_erase_range(flashdrv_t *softc,flash_range_t *range) argument 601 flash_erase_all(flashdrv_t *softc) argument 625 flash_cfi_getsectors(flashdrv_t *softc) argument 664 flash_sector_query(flashdrv_t *softc,flash_sector_t *sector) argument 719 flash_set_cmdset(flashdrv_t *softc,int cmdset) argument 752 flash_cfi_probe(flashdrv_t *softc) argument 812 flash_getwidth(flashdrv_t *softc,flash_info_t *info) argument 845 flash_getinfo(flashdrv_t *softc) argument 923 flashdrv_setup_nvram(flashdrv_t *softc) argument 987 flashdrv_t *softc; local 1045 flashdrv_t *softc = ctx->dev_softc; local 1095 flashdrv_t *softc = ctx->dev_softc; local 1197 flash_writeall(flashdrv_t *softc,iocb_buffer_t *buffer) argument 1238 flashdrv_t *softc = ctx->dev_softc; local 1279 flashdrv_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_promice.c | 189 promice_t *softc; local 200 softc = (promice_t *) KMALLOC(sizeof(promice_t),0); 201 if (softc) { 202 softc->ai2_addr = probe_a; 203 if (probe_b & WORDSIZE_MASK) softc->ai2_wordsize = probe_b; 204 else softc->ai2_wordsize = WORDSIZE; 206 if (probe_b & AINODIRT_FLG) softc->ai2_aidirt = FALSE; 207 else softc->ai2_aidirt = TRUE; 210 cfe_attach(drv,softc,NULL,descr); 229 promice_t *softc local 270 promice_t *softc = ctx->dev_softc; local 304 promice_t *softc = ctx->dev_softc; local 325 promice_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_newflash.c | 142 static int flash_sector_query(flashdev_t *softc,flash_sector_t *sector); 206 * FLASH_OP_BEGIN(softc) 212 * softc - our softc. 218 #define flash_op_begin(softc) softc->fd_iptr = 0; 221 * FLASH_OP_ADD(softc,op,dest,src,cnt) 226 * softc - our flash 233 static void flash_op_add(flashdev_t *softc,long base,long op,long dest,long src,long cnt) argument 235 flashinstr_t *fi = &(softc 259 flash_op_execute(flashdev_t *softc) argument 301 flash_erase_range(flashdev_t *softc,flash_range_t *range) argument 359 flash_erase_all(flashdev_t *softc) argument 439 flash_sector_query(flashdev_t *softc,flash_sector_t *sector) argument 512 flash_set_cmdset(flashdev_t *softc,int cmdset,int bus16,int dev16) argument 575 flash_cfi_probe(flashdev_t *softc) argument 723 flash_jedec_probe(flashdev_t *softc) argument 822 flash_do_probe(flashdev_t *softc) argument 914 flash_do_parts(flashdev_t *softc) argument 971 flashdrv_allocbuf(flashdev_t *softc) argument 1008 flashdev_t *softc; local 1134 flashdev_t *softc = part->fp_dev; local 1172 flashdev_t *softc = part->fp_dev; local 1234 flashdev_t *softc = part->fp_dev; local 1380 flashdev_t *softc = part->fp_dev; local 1485 flashdev_t *softc = part->fp_dev; local [all...] |
H A D | dev_spi_robo.c | 149 static int robo_read_reg(robo_spi_t *softc,int reg,uint8_t *buf,int len) argument 151 cfe_spi_channel_t *chan = softc->spi_channel; 164 static int robo_write_reg(robo_spi_t *softc,int reg,uint8_t *buf,int len) argument 166 cfe_spi_channel_t *chan = softc->spi_channel; 180 static int robo_fast_rack_poll(robo_spi_t *softc) argument 182 cfe_spi_channel_t *chan = softc->spi_channel; 204 static int robo_status_poll(robo_spi_t *softc,uint8_t mask,uint8_t val) argument 211 robo_read_reg(softc,R_ROBOSPI_SPI_STATUS,&status,1); 226 static int robo_select_page(robo_spi_t *softc,int page) argument 230 if (softc 241 robo_reset(robo_spi_t *softc) argument 270 robo_spi_t *softc; local 306 robo_spi_t *softc = ctx->dev_softc; local 327 robo_spi_t *softc = ctx->dev_softc; local 413 robo_spi_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_ns16550.c | 129 ns16550_uart_t *softc; local 132 softc = (ns16550_uart_t *) KMALLOC(sizeof(ns16550_uart_t),0); 133 if (softc) { 134 softc->uart_base = probe_a; 135 softc->baud_base = probe_b ? probe_b : NS16550_HZ; 136 softc->uart_speed = CFG_SERIAL_BAUD_RATE; 137 softc->uart_flowcontrol = SERIAL_FLOW_NONE; 140 cfe_attach(drv, softc, NULL, descr); 158 static void ns16550_uart_setflow(ns16550_uart_t *softc) argument 166 ns16550_uart_t *softc local 202 ns16550_uart_t *softc = ctx->dev_softc; local 223 ns16550_uart_t *softc = ctx->dev_softc; local 232 ns16550_uart_t *softc = ctx->dev_softc; local 252 ns16550_uart_t *softc = ctx->dev_softc; local 283 ns16550_uart_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_smbus_24lc128.c | 214 smbus_24lc128_t *softc; local 217 softc = (smbus_24lc128_t *) KMALLOC(sizeof(smbus_24lc128_t),0); 225 softc->smbus_channel = SMBUS_CHANNEL((int)probe_a); 226 softc->smbus_address = (int)probe_b; 227 softc->env_offset = 0; 228 softc->env_size = M24LC128_EEPROM_SIZE; 232 cfe_attach(drv,softc,NULL,descr); 244 * ctx - device context (can obtain our softc here) 253 smbus_24lc128_t *softc = ctx->dev_softc; local 256 b = smbus_readbyte(softc 279 smbus_24lc128_t *softc = ctx->dev_softc; local 344 smbus_24lc128_t *softc = ctx->dev_softc; local 389 smbus_24lc128_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_smbus_at24c02.c | 207 sb1250_at24c02eeprom_t *softc; local 210 softc = (sb1250_at24c02eeprom_t *) KMALLOC(sizeof(sb1250_at24c02eeprom_t),0); 218 softc->smbus_channel = SMBUS_CHANNEL((int)probe_a); 219 softc->smbus_address = (int)probe_b; 220 softc->env_offset = 0; 221 softc->env_size = AT24C02_EEPROM_SIZE; 225 cfe_attach(drv,softc,NULL,descr); 236 * ctx - device context (can obtain our softc here) 245 sb1250_at24c02eeprom_t *softc = ctx->dev_softc; local 248 b = smbus_readbyte(softc 271 sb1250_at24c02eeprom_t *softc = ctx->dev_softc; local 336 sb1250_at24c02eeprom_t *softc = ctx->dev_softc; local 381 sb1250_at24c02eeprom_t *softc = ctx->dev_softc; local [all...] |
/broadcom-cfe-1.4.2/cfe/arch/mips/chipset/sibyte/src/ |
H A D | cfm8_spi.c | 124 cfm8_spi_softc_t *softc; local 131 chan->softc = (void *) (chan+1); 133 softc = chan->softc; 134 softc->base = probe_a; 135 softc->addr = (volatile uint8_t *)PHYS_TO_K1(softc->base); 147 cfm8_spi_softc_t *softc = chan->softc; local 150 SPI_CLK_INIT(softc); 164 cfm8_spi_softc_t *softc = chan->softc; local 180 cfm8_spi_softc_t *softc = chan->softc; local 210 cfm8_spi_softc_t *softc = chan->softc; local [all...] |
H A D | sb1250_smbus.c | 100 static int sb1250_smbus_waitready(sb1250_smbus_softc_t *softc) argument 106 status = SBREADCSR(softc->base+R_SMB_STATUS); 117 SBWRITECSR(softc->base+R_SMB_STATUS,(status & M_SMB_ERROR)); 126 sb1250_smbus_softc_t *softc; local 133 chan->softc = (void *) (chan+1); 135 softc = chan->softc; 136 softc->base = probe_a; 143 sb1250_smbus_softc_t *softc = chan->softc; local 168 sb1250_smbus_softc_t *softc = chan->softc; local 214 sb1250_smbus_softc_t *softc = chan->softc; local 234 sb1250_smbus_softc_t *softc = chan->softc; local 263 sb1250_smbus_softc_t *softc = chan->softc; local 287 sb1250_smbus_softc_t *softc = chan->softc; local 345 sb1250_smbus_softc_t *softc = chan->softc; local [all...] |
H A D | dev_sb1250_uart.c | 118 #define SBDUARTWRITE(softc,reg,val) \ 119 (SBREADCSR(softc->uart_mode_reg_1),SBWRITECSR(softc->reg,val)) 121 #define SBDUARTREAD(softc,reg) \ 122 (SBREADCSR(softc->uart_mode_reg_1),SBREADCSR(softc->reg)) 128 sb1250_uart_t *softc; local 137 softc = (sb1250_uart_t *) KMALLOC(sizeof(sb1250_uart_t),0); 138 if (softc) { 139 softc 158 sb1250_uart_setflow(sb1250_uart_t *softc) argument 185 sb1250_uart_t *softc = ctx->dev_softc; local 205 sb1250_uart_t *softc = ctx->dev_softc; local 225 sb1250_uart_t *softc = ctx->dev_softc; local 234 sb1250_uart_t *softc = ctx->dev_softc; local 259 sb1250_uart_t *softc = ctx->dev_softc; local 287 sb1250_uart_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_jtag.c | 139 jtag_t *softc; local 147 softc = (jtag_t *) KMALLOC(sizeof(jtag_t),0); 148 if (softc) { 149 softc->jtag_input = probe_a + JTAG_CONS_INPUT; 150 softc->jtag_output = probe_a + JTAG_CONS_OUTPUT; 151 softc->jtag_control = probe_a + JTAG_CONS_CONTROL; 152 softc->waiting_input = 0; 154 cfe_attach(drv,softc,NULL,descr); 173 jtag_t *softc = ctx->dev_softc; local 180 magic = SBREADCSR(softc 199 jtag_grab_dword(jtag_t *softc) argument 222 jtag_t *softc = ctx->dev_softc; local 276 jtag_t *softc = ctx->dev_softc; local 301 jtag_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_sb1250_pcihost.c | 99 sb1250_host_t *softc; local 104 softc = (sb1250_host_t *) KMALLOC(sizeof(sb1250_host_t), 0); 105 if (softc) { 106 softc->pci_base = 0; 107 softc->offset = 0; 108 softc->limit = 0; 111 cfe_attach(drv,softc,NULL,descr); 123 sb1250_host_t *softc = ctx->dev_softc; local 137 softc->pci_base = PCI_TO_CPU(data_addr); 138 softc 146 sb1250_host_t *softc = ctx->dev_softc; local 190 sb1250_host_t *softc = ctx->dev_softc; local [all...] |
/broadcom-cfe-1.4.2/cfe/net/ |
H A D | dev_tcpconsole.c | 130 tcpconsole_t *softc; local 133 softc = (tcpconsole_t *) KMALLOC(sizeof(tcpconsole_t),0); 134 if (softc) { 135 softc->tcp_socket = -1; 136 softc->tcp_status = TCPCONSTAT_IDLE; 141 softc->tcp_port = (int)probe_a; 143 cfe_attach(drv, softc, NULL, descr); 148 static int tcpconsole_isready(tcpconsole_t *softc,int *rxbytes) argument 153 res = tcp_status(softc->tcp_socket,&connstat,rxbytes,&rxeof); 170 static int tcpconsole_process(tcpconsole_t *softc) argument 231 tcpconsole_t *softc = ctx->dev_softc; local 262 tcpconsole_t *softc = ctx->dev_softc; local 284 tcpconsole_t *softc = ctx->dev_softc; local 320 tcpconsole_t *softc = ctx->dev_softc; local [all...] |
/broadcom-cfe-1.4.2/cfe/msys/ |
H A D | dev_msys.c | 350 bdkdrv_t *softc; local 360 softc = (bdkdrv_t *) KMALLOC(sizeof(bdkdrv_t),0); 361 if (softc) { 362 memset(softc,0,sizeof(bdkdrv_t)); 364 softc->base = probe_a; 365 softc->size = probe_b; 367 softc->bdkdrv_initialized = 0; 373 softc->status = bdkFindDiskOnChip( &softc->base, &softc 429 bdkdrv_t *softc = ctx->dev_softc; local 495 bdkdrv_t *softc = ctx->dev_softc; local 636 bdkdrv_t *softc = ctx->dev_softc; local [all...] |
/broadcom-cfe-1.4.2/cfe/pccons/ |
H A D | dev_pcconsole.c | 144 pcconsole_t *softc = ctx->dev_softc; local 148 status = inb(softc->kbd_status); 151 b = inb(softc->kbd_data); 152 kbd_doscan(&(softc->ks),b); 157 * pcconsole_waitcmdready(softc) 162 * softc - console structure 168 static void pcconsole_waitcmdready(pcconsole_t *softc) argument 174 status = inb(softc->kbd_status); /* read status */ 176 data = inb(softc->kbd_data); /* get data */ 177 kbd_doscan(&(softc 199 pcconsole_t *softc = kbd_getref(ks); local 229 pcconsole_t *softc; local 263 pcconsole_t *softc = ctx->dev_softc; local 275 pcconsole_t *softc = ctx->dev_softc; local 298 pcconsole_t *softc = ctx->dev_softc; local 309 pcconsole_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_pcconsole2.c | 167 pcconsole_t *softc; local 176 softc = (pcconsole_t *) KMALLOC(sizeof(pcconsole_t),0); 177 if (softc) { 179 memset(softc,0,sizeof(pcconsole_t)); 184 vga_init(&(softc->vga),__ISAaddr(VGA_TEXTBUF_COLOR),outb); 187 cfe_attach(drv,softc,NULL,descr); 195 pcconsole_t *softc = ctx->dev_softc; local 197 pcconsole_current = softc; 199 softc->kbd_in = 0; 200 softc 210 pcconsole_t *softc = ctx->dev_softc; local 235 pcconsole_t *softc = ctx->dev_softc; local 246 pcconsole_t *softc = ctx->dev_softc; local [all...] |
/broadcom-cfe-1.4.2/cfe/usb/ |
H A D | dev_usb_rtek.c | 160 static int rtek_init_device( rtek_softc_t *softc ) 166 usbdev_t *dev = softc->dev; 170 usb_get_device_descriptor( softc->dev, &dev_desc, 0 ); 176 softc->ven_code = ptr[2]; 205 rtek_get_mac_addr( dev, softc->mac_addr ); 209 VENDOR_NAMES[softc->ven_code], softc->mac_addr); 216 rtek_softc_t *softc = (rtek_softc_t *) ctx; local 217 hs_memcpy_to_hs( mac_addr, softc->mac_addr, 6 ); 221 static void rtek_queue_rx( rtek_softc_t *softc ) 231 rtek_softc_t *softc = (rtek_softc_t *) ctx; local 239 rtek_softc_t *softc = (rtek_softc_t *) ctx; local 263 rtek_softc_t *softc = (rtek_softc_t *) ctx; local 340 rtek_softc_t *softc; local 414 rtek_softc_t *softc = (rtek_softc_t *) dev->ud_private; local [all...] |
H A D | dev_usb_klsi.c | 141 static int klsi_load( klsi_softc_t *softc ) 143 usbdev_t *dev = softc->dev; 160 static int klsi_init_device( klsi_softc_t *softc ) 164 usbdev_t *dev = softc->dev; 170 usb_get_device_descriptor( softc->dev, &dev_desc, 0 ); 176 softc->ven_code = ptr[2]; 190 klsi_load(softc); 209 memcpy( softc->mac_addr, desc->klsi_macaddr, 6); 217 VENDOR_NAMES[softc->ven_code], softc 224 klsi_softc_t *softc = (klsi_softc_t *) ctx; local 239 klsi_softc_t *softc = (klsi_softc_t *) ctx; local 247 klsi_softc_t *softc = (klsi_softc_t *) ctx; local 280 klsi_softc_t *softc = (klsi_softc_t *) ctx; local 356 klsi_softc_t *softc; local 430 klsi_softc_t *softc = (klsi_softc_t *) dev->ud_private; local [all...] |
H A D | dev_usb_catc.c | 167 static int catc_init_device( catc_softc_t *softc ) 172 usbdev_t *dev = softc->dev; 177 usb_get_device_descriptor( softc->dev, &dev_desc, 0 ); 183 softc->ven_code = ptr[2]; 211 catc_get_mac_addr( dev, softc->mac_addr ); 215 VENDOR_NAMES[softc->ven_code], softc->mac_addr); 222 catc_softc_t *softc = (catc_softc_t *) ctx; local 223 hs_memcpy_to_hs( mac_addr, softc->mac_addr, 6 ); 227 static void catc_queue_rx( catc_softc_t *softc ) 237 catc_softc_t *softc = (catc_softc_t *) ctx; local 244 catc_softc_t *softc = (catc_softc_t *) ctx; local 269 catc_softc_t *softc = (catc_softc_t *) ctx; local 343 catc_softc_t *softc; local 417 catc_softc_t *softc = (catc_softc_t *) dev->ud_private; local 446 catc_softc_t *softc = (catc_softc_t *) ctx->dev_softc; local 459 catc_softc_t *softc = (catc_softc_t *) ctx->dev_softc; local 472 catc_softc_t *softc = (catc_softc_t *) ctx->dev_softc; local 484 catc_softc_t *softc = (catc_softc_t *) ctx->dev_softc; local 498 catc_softc_t *softc = (catc_softc_t *) ctx->dev_softc; local 545 catc_softc_t *softc = (catc_softc_t *) ctx->dev_softc; local [all...] |
H A D | dev_usb_asix.c | 178 static int asix_init_device( asix_softc_t *softc ) 185 usb_get_device_descriptor( softc->dev, &dev_desc, 0 ); 193 softc->dev_id = ptr[2]; 194 softc->ven_code = ptr[3]; 205 asix_get_mac_addr( softc->dev, softc->mac_addr ); 209 VENDOR_NAMES[softc->ven_code], softc->mac_addr); 216 asix_softc_t *softc = (asix_softc_t *) ctx; local 218 hs_memcpy_to_hs( mac_addr, softc 232 asix_softc_t *softc = (asix_softc_t *) ctx; local 240 asix_softc_t *softc = (asix_softc_t *) ctx; local 257 asix_softc_t *softc = (asix_softc_t *) ctx; local 342 asix_softc_t *softc; local 418 asix_softc_t *softc = (asix_softc_t *) dev->ud_private; local [all...] |
H A D | usbserial.c | 283 usbserial_softc_t *softc = dev->ud_private; local 289 ur = usb_make_request(dev,softc->user_outpipe,bptr,len,UR_FLAG_OUT); 387 * device and allocating our softc here. 406 usbserial_softc_t *softc; local 412 softc = KMALLOC(sizeof(usbserial_softc_t),0); 413 memset(softc,0,sizeof(usbserial_softc_t)); 414 dev->ud_private = softc; 416 softc->vendor_id = (devdscr->idVendorHigh << 8) + devdscr->idVendorLow; 417 softc->dev_id = (devdscr->idProductHigh << 8) + devdscr->idProductLow; 420 if (softc 582 usbserial_softc_t *softc; local 608 usb_uart_t *softc; local 627 usb_uart_t *softc = ctx->dev_softc; local 655 usb_uart_t *softc = ctx->dev_softc; local 671 usb_uart_t *softc = ctx->dev_softc; local 696 usb_uart_t *softc = ctx->dev_softc; local [all...] |
H A D | usbeth.c | 58 void *softc; member in struct:usbeth_unit_s 78 int usbeth_register(usbeth_disp_t *disp,void *softc) argument 88 unit->softc = softc; 97 void usbeth_unregister(void *softc) argument 103 * We had better find the softc. If we fail to find it, 110 if (unit->softc == softc) { 112 unit->softc = NULL; 132 if (unit->softc [all...] |
H A D | ohci.c | 106 #define OHCI_WRITECSR(softc,x,y) \ 107 *((volatile uint32_t *) ((softc)->ohci_regs + ((x)/sizeof(uint32_t)))) = (y) 108 #define OHCI_READCSR(softc,x) \ 109 *((volatile uint32_t *) ((softc)->ohci_regs + ((x)/sizeof(uint32_t)))) 135 #define OHCI_WRITECSR(softc,x,y) \ 136 phys_write32(((softc)->ohci_regs + (x)),(y)) 137 #define OHCI_READCSR(softc,x) \ 138 phys_read32(((softc)->ohci_regs + (x))) 186 #define ohci_td_from_transfer(softc,transfer) \ 187 ((softc) 256 ohci_dumptd(ohci_softc_t *softc,ohci_td_t *td) argument 277 ohci_dumptdchain(ohci_softc_t *softc,ohci_td_t *td) argument 299 ohci_dumped(ohci_softc_t *softc,ohci_ed_t *ed) argument 324 ohci_dumpedchain(ohci_softc_t *softc,ohci_ed_t *ed) argument 337 ohci_dumpdoneq(ohci_softc_t *softc) argument 352 eptstats(ohci_softc_t *softc) argument 380 _ohci_allocept(ohci_softc_t *softc) argument 427 _ohci_allocxfer(ohci_softc_t *softc) argument 478 _ohci_freeept(ohci_softc_t *softc,ohci_endpoint_t *e) argument 510 _ohci_freexfer(ohci_softc_t *softc,ohci_transfer_t *t) argument 565 _ohci_initpools(ohci_softc_t *softc) argument 659 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 774 _ohci_setupepts(ohci_softc_t *softc) argument 855 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 876 _ohci_queueept(ohci_softc_t *softc,ohci_endpoint_t *queue,ohci_endpoint_t *newept) argument 911 _ohci_deqept(ohci_softc_t *softc,ohci_endpoint_t *queue,ohci_endpoint_t *e) argument 957 ohci_intr_procdoneq(ohci_softc_t *softc, uint32_t donehead) argument 1080 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1202 ohci_softc_t *softc; local 1272 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1373 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1402 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1431 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1461 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1569 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1857 ohci_roothub_req(ohci_softc_t *softc,usb_device_request_t *req) argument 2123 ohci_roothub_statchg(ohci_softc_t *softc) argument 2175 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local [all...] |
H A D | dev_usb_pegasus.c | 235 static int peg_init_device( peg_softc_t * softc ) 240 usbdev_t *dev = softc->dev; 243 usb_get_device_descriptor( softc->dev, &dev_desc, 0 ); 249 softc->dev_id = ptr[2]; 250 softc->ven_code = ptr[3]; 261 if( softc->dev_id == PEGASUS_II ) 267 peg_get_mac_addr( dev, softc->mac_addr ); 271 VENDOR_NAMES[softc->ven_code], softc->mac_addr); 278 peg_softc_t *softc local 293 peg_softc_t *softc = (peg_softc_t *) ctx; local 301 peg_softc_t *softc = (peg_softc_t *) ctx; local 325 peg_softc_t *softc = (peg_softc_t *) ctx; local 401 peg_softc_t *softc; local 475 peg_softc_t *softc = (peg_softc_t *) dev->ud_private; local [all...] |
/broadcom-cfe-1.4.2/cfe/arch/mips/board/bcm1250cpci/src/ |
H A D | dev_ide.c | 191 idecommon_t *softc = NULL; local 211 softc = (idecommon_t *) KMALLOC(sizeof(idecommon_t),0); 214 if (!softc || !disp) { 215 if (softc) KFREE(softc); 220 softc->idecommon_addr = probe_a; 221 softc->idecommon_unit = unit; 222 softc->idecommon_deferprobe = 0; 224 disp->ref = softc; 225 disp->baseaddr = softc [all...] |