/asus-wl-520gu-7.0.1.45/src/cfe/cfe/dev/ |
H A D | dev_flash.c | 78 #define GETCFIBYTE(softc,offset) READFLASH_K1(softc,((offset) << (softc->flashdrv_widemode))) 156 #define FLASHOP_ERASE_SECTOR(softc,sect) (*((softc)->flashdrv_ops->erasesector))((softc),(sect)) 157 #define FLASHOP_WRITE_BLOCK(softc,off,buf,len) (*((softc)->flashdrv_ops->writeblk))((softc),(off),(buf),(len)) 164 static int flash_sector_query(flashdrv_t *softc,flash_sector_ 213 amd_flash_write_byte(flashdrv_t *softc,int offset, unsigned char val) argument 263 amd_flash_write_block(flashdrv_t *softc,int offset,void *buf,int len) argument 294 amd_flash_erase_sector(flashdrv_t *softc,int offset) argument 338 intel_flash_write_byte(flashdrv_t *softc, int offset, unsigned char val) argument 376 intel_flash_write_word(flashdrv_t *softc, int offset, unsigned short val) argument 415 intel_flash_write_block(flashdrv_t *softc,int offset,void *buf,int len) argument 459 intel_flash_erase_sector(flashdrv_t *softc,int offset) argument 490 flash_erase_range(flashdrv_t *softc,flash_range_t *range) argument 547 flash_erase_all(flashdrv_t *softc) argument 571 flash_cfi_getsectors(flashdrv_t *softc) argument 610 flash_sector_query(flashdrv_t *softc,flash_sector_t *sector) argument 665 flash_set_cmdset(flashdrv_t *softc,int cmdset) argument 697 flash_cfi_probe(flashdrv_t *softc) argument 757 flash_getwidth(flashdrv_t *softc,flash_info_t *info) argument 790 flash_getinfo(flashdrv_t *softc) argument 868 flashdrv_setup_nvram(flashdrv_t *softc) argument 932 flashdrv_t *softc; local 990 flashdrv_t *softc = ctx->dev_softc; local 1040 flashdrv_t *softc = ctx->dev_softc; local 1141 flash_writeall(flashdrv_t *softc,iocb_buffer_t *buffer) argument 1182 flashdrv_t *softc = ctx->dev_softc; local 1222 flashdrv_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_newflash.c | 136 static int flash_sector_query(flashdev_t *softc,flash_sector_t *sector); 152 * FLASH_OP_BEGIN(softc) 158 * softc - our softc. 164 #define flash_op_begin(softc) softc->fd_iptr = 0; 167 * FLASH_OP_ADD(softc,op,dest,src,cnt) 172 * softc - our flash 179 static void flash_op_add(flashdev_t *softc,long base,long op,long dest,long src,long cnt) argument 181 flashinstr_t *fi = &(softc 205 flash_op_execute(flashdev_t *softc) argument 305 flash_erase_range(flashdev_t *softc,flash_range_t *range) argument 363 flash_erase_all(flashdev_t *softc) argument 448 flash_sector_query(flashdev_t *softc,flash_sector_t *sector) argument 521 flash_set_cmdset(flashdev_t *softc,int cmdset,int bus16,int dev16) argument 608 flash_cfi_probe(flashdev_t *softc) argument 780 flash_do_probe(flashdev_t *softc) argument 873 flash_do_parts(flashdev_t *softc) argument 929 flashdrv_allocbuf(flashdev_t *softc) argument 966 flashdev_t *softc; local 1120 flashdev_t *softc = part->fp_dev; local 1163 flashdev_t *softc = part->fp_dev; local 1225 flashdev_t *softc = part->fp_dev; local 1356 flashdev_t *softc = part->fp_dev; local 1455 flashdev_t *softc = part->fp_dev; local [all...] |
H A D | dev_promice.c | 192 promice_t *softc; local 201 softc = (promice_t *) KMALLOC(sizeof(promice_t),0); 202 if (softc) { 203 softc->ai2_addr = probe_a; 204 if (probe_b) softc->ai2_wordsize = probe_b; 205 else softc->ai2_wordsize = WORDSIZE; 207 cfe_attach(drv,softc,NULL,descr); 226 promice_t *softc = ctx->dev_softc; local 229 softc->zero = (volatile WORDTYPE *) 230 UNCADDR(softc 267 promice_t *softc = ctx->dev_softc; local 298 promice_t *softc = ctx->dev_softc; local 319 promice_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_ns16550.c | 69 #define WRITECSR(softc, offset, value) do { \ 70 phys_write8((softc)->uart_base + ((offset) << (softc)->reg_shift), (value)); \ 74 #define WRITECSR(softc, offset, value) \ 75 phys_write8((softc)->uart_base + ((offset) << (softc)->reg_shift), (value)) 78 #define READCSR(softc, offset) \ 79 phys_read8((softc)->uart_base + ((offset) << (softc)->reg_shift)) 130 ns16550_uart_t *softc; local 160 ns16550_uart_setflow(ns16550_uart_t *softc) argument 168 ns16550_uart_t *softc = ctx->dev_softc; local 208 ns16550_uart_t *softc = ctx->dev_softc; local 226 ns16550_uart_t *softc = ctx->dev_softc; local 276 ns16550_uart_t *softc = ctx->dev_softc; local 299 ns16550_uart_t *softc = ctx->dev_softc; local 327 ns16550_uart_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_bcm1250.c | 132 bcm1250_t *softc; local 136 softc = (bcm1250_t *) KMALLOC(sizeof(bcm1250_t), 0); 137 if (softc == NULL) { 142 softc->tag = tag; 146 softc->mem_base = pa; 153 softc->mailbox = pa; 155 softc->downloaded = 0; 157 cfe_attach(drv, softc, NULL, descr); 191 bcm1250_t *softc = ctx->dev_softc; local 192 physaddr_t cmd_p = softc 222 bcm1250_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_atapi.c | 178 idecommon_t *softc; local 190 softc = (idecommon_t *) KMALLOC(sizeof(idecommon_t),0); 193 if (softc && disp) { 194 softc->idecommon_addr = probe_a; 195 softc->idecommon_unit = probe_b; 197 disp->ref = softc; 198 disp->baseaddr = softc->idecommon_addr; 199 softc->idecommon_dispatch = disp; 209 res = idecommon_devprobe(softc); 211 KFREE(softc); [all...] |
H A D | dev_ide_common.c | 677 * softc - IDE interface 684 static int idecommon_diagnostic(idecommon_t *softc) argument 686 if (idecommon_waitnotbusy(softc) < 0) return -1; 687 IDE_WRITEREG8(softc,IDE_REG_DRVHD,(softc->idecommon_unit<<4)); 688 if (idecommon_waitnotbusy(softc) < 0) return -1; 690 IDE_WRITEREG8(softc,IDE_REG_COMMAND,IDE_CMD_DIAGNOSTIC); 691 if (idecommon_waitnotbusy(softc) < 0) return -1; 694 idecommon_dumpregs(softc); 734 * idecommon_devprobe(softc) 749 idecommon_devprobe(idecommon_t *softc,int noisy) argument 867 idecommon_t *softc = ctx->dev_softc; local 895 idecommon_t *softc = ctx->dev_softc; local 991 idecommon_t *softc = ctx->dev_softc; local 1069 idecommon_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_ide_pci.c | 245 idecommon_t *softc; local 296 softc = (idecommon_t *) KMALLOC(sizeof(idecommon_t),0); 299 if (!softc || !disp) { 300 if (softc) KFREE(softc); 306 softc->idecommon_addr = reg; 307 disp->ref = softc; 308 disp->baseaddr = softc->idecommon_addr; 309 softc->idecommon_deferprobe = 0; 310 softc [all...] |
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/net/ |
H A D | dev_tcpconsole.c | 141 tcpconsole_t *softc; local 144 softc = (tcpconsole_t *) KMALLOC(sizeof(tcpconsole_t),0); 145 if (softc) { 146 softc->tcp_socket = -1; 147 softc->tcp_status = TCPCONSTAT_IDLE; 152 softc->tcp_port = (int)probe_a; 154 cfe_attach(drv, softc, NULL, descr); 159 static int tcpconsole_isready(tcpconsole_t *softc,int *rxbytes) argument 164 res = tcp_status(softc->tcp_socket,&connstat,rxbytes,&rxeof); 181 static int tcpconsole_process(tcpconsole_t *softc) argument 242 tcpconsole_t *softc = ctx->dev_softc; local 273 tcpconsole_t *softc = ctx->dev_softc; local 295 tcpconsole_t *softc = ctx->dev_softc; local 331 tcpconsole_t *softc = ctx->dev_softc; local [all...] |
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/arch/mips/cpu/sb1250/src/ |
H A D | dev_sb1250_uart.c | 121 #define SBDUARTWRITE(softc,reg,val) \ 122 (SBREADCSR(softc->uart_mode_reg_1),SBWRITECSR(softc->reg,val)) 124 #define SBDUARTREAD(softc,reg) \ 125 (SBREADCSR(softc->uart_mode_reg_1),SBREADCSR(softc->reg)) 131 sb1250_uart_t *softc; local 140 softc = (sb1250_uart_t *) KMALLOC(sizeof(sb1250_uart_t),0); 141 if (softc) { 142 softc 161 sb1250_uart_setflow(sb1250_uart_t *softc) argument 188 sb1250_uart_t *softc = ctx->dev_softc; local 208 sb1250_uart_t *softc = ctx->dev_softc; local 227 sb1250_uart_t *softc = ctx->dev_softc; local 236 sb1250_uart_t *softc = ctx->dev_softc; local 255 sb1250_uart_t *softc = ctx->dev_softc; local 283 sb1250_uart_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_jtag.c | 144 jtag_t *softc; local 152 softc = (jtag_t *) KMALLOC(sizeof(jtag_t),0); 153 if (softc) { 154 softc->jtag_input = probe_a + JTAG_CONS_INPUT; 155 softc->jtag_output = probe_a + JTAG_CONS_OUTPUT; 156 softc->jtag_control = probe_a + JTAG_CONS_CONTROL; 157 softc->waiting_input = 0; 159 cfe_attach(drv,softc,NULL,descr); 178 jtag_t *softc = ctx->dev_softc; local 185 magic = SBREADCSR(softc 204 jtag_grab_dword(jtag_t *softc) argument 227 jtag_t *softc = ctx->dev_softc; local 278 jtag_t *softc = ctx->dev_softc; local 303 jtag_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_sb1250_pcihost.c | 104 sb1250_host_t *softc; local 109 softc = (sb1250_host_t *) KMALLOC(sizeof(sb1250_host_t), 0); 110 if (softc) { 111 softc->pci_base = 0; 112 softc->offset = 0; 113 softc->limit = 0; 116 cfe_attach(drv,softc,NULL,descr); 128 sb1250_host_t *softc = ctx->dev_softc; local 142 softc->pci_base = PCI_TO_CPU(data_addr); 143 softc 151 sb1250_host_t *softc = ctx->dev_softc; local 193 sb1250_host_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_sb1250_x1240eeprom.c | 389 sb1250_x1240eeprom_t *softc; local 392 softc = (sb1250_x1240eeprom_t *) KMALLOC(sizeof(sb1250_x1240eeprom_t),0); 400 softc->smbus_channel = (int)probe_a; 401 softc->env_offset = 0; 402 softc->env_size = X1241_EEPROM_SIZE; 406 cfe_attach(drv,softc,NULL,descr); 418 * ctx - device context (can obtain our softc here) 427 sb1250_x1240eeprom_t *softc = ctx->dev_softc; local 438 smbus_init(softc->smbus_channel); 443 b = smbus_readrtc(softc 501 sb1250_x1240eeprom_t *softc = ctx->dev_softc; local 565 sb1250_x1240eeprom_t *softc = ctx->dev_softc; local 620 sb1250_x1240eeprom_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_sb1250_pcmcia.c | 285 idecommon_t *softc = (idecommon_t *) x; local 290 oldpresent = (softc->idecommon_flags & PCMCIA_CARDPRESENT) ? 1 : 0; 294 if (!TIMER_RUNNING(softc->timer)) { 295 TIMER_SET(softc->timer,10); 299 if (!TIMER_EXPIRED(softc->timer)) return; 307 softc->idecommon_flags |= PCMCIA_CARDPRESENT; 311 softc->idecommon_flags &= ~PCMCIA_CARDPRESENT; 317 TIMER_CLEAR(softc->timer); 340 idecommon_t *softc; local 356 softc 406 idecommon_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_sb1250_24lc128eeprom.c | 350 sb1250_24lc128eeprom_t *softc; local 353 softc = (sb1250_24lc128eeprom_t *) KMALLOC(sizeof(sb1250_24lc128eeprom_t),0); 361 softc->smbus_channel = (int)probe_a; 362 softc->smbus_address = (int)probe_b; 363 softc->env_offset = 0; 364 softc->env_size = M24LC128_EEPROM_SIZE; 368 cfe_attach(drv,softc,NULL,descr); 380 * ctx - device context (can obtain our softc here) 389 sb1250_24lc128eeprom_t *softc = ctx->dev_softc; local 392 smbus_init(softc 417 sb1250_24lc128eeprom_t *softc = ctx->dev_softc; local 481 sb1250_24lc128eeprom_t *softc = ctx->dev_softc; local 525 sb1250_24lc128eeprom_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_sb1250_at24c02eeprom.c | 336 sb1250_at24c02eeprom_t *softc; local 339 softc = (sb1250_at24c02eeprom_t *) KMALLOC(sizeof(sb1250_at24c02eeprom_t),0); 347 softc->smbus_channel = (int)probe_a; 348 softc->smbus_address = (int)probe_b; 349 softc->env_offset = 0; 350 softc->env_size = AT24C02_EEPROM_SIZE; 354 cfe_attach(drv,softc,NULL,descr); 365 * ctx - device context (can obtain our softc here) 374 sb1250_at24c02eeprom_t *softc = ctx->dev_softc; local 377 smbus_init(softc 402 sb1250_at24c02eeprom_t *softc = ctx->dev_softc; local 466 sb1250_at24c02eeprom_t *softc = ctx->dev_softc; local 510 sb1250_at24c02eeprom_t *softc = ctx->dev_softc; local [all...] |
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/pccons/ |
H A D | dev_pcconsole.c | 150 pcconsole_t *softc = ctx->dev_softc; local 154 status = inb(softc->kbd_status); 157 b = inb(softc->kbd_data); 158 kbd_doscan(&(softc->ks),b); 163 * pcconsole_waitcmdready(softc) 168 * softc - console structure 174 static void pcconsole_waitcmdready(pcconsole_t *softc) argument 180 status = inb(softc->kbd_status); /* read status */ 182 data = inb(softc->kbd_data); /* get data */ 183 kbd_doscan(&(softc 205 pcconsole_t *softc = kbd_getref(ks); local 235 pcconsole_t *softc; local 263 pcconsole_t *softc = ctx->dev_softc; local 275 pcconsole_t *softc = ctx->dev_softc; local 295 pcconsole_t *softc = ctx->dev_softc; local 306 pcconsole_t *softc = ctx->dev_softc; local [all...] |
H A D | dev_pcconsole2.c | 175 pcconsole_t *softc; local 184 softc = (pcconsole_t *) KMALLOC(sizeof(pcconsole_t),0); 185 if (softc) { 187 memset(softc,0,sizeof(pcconsole_t)); 189 vga_init(&(softc->vga),__ISAaddr(VGA_TEXTBUF_COLOR),outb); 192 cfe_attach(drv,softc,NULL,descr); 200 pcconsole_t *softc = ctx->dev_softc; local 202 pcconsole_current = softc; 204 softc->kbd_in = 0; 205 softc 215 pcconsole_t *softc = ctx->dev_softc; local 237 pcconsole_t *softc = ctx->dev_softc; local 248 pcconsole_t *softc = ctx->dev_softc; local [all...] |
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/usb/ |
H A D | ohci.c | 103 #define OHCI_WRITECSR(softc,x,y) \ 104 *((volatile uint32_t *) ((softc)->ohci_regs + ((x)/sizeof(uint32_t)))) = (y) 105 #define OHCI_READCSR(softc,x) \ 106 *((volatile uint32_t *) ((softc)->ohci_regs + ((x)/sizeof(uint32_t)))) 116 #define OHCI_WRITECSR(softc,x,y) \ 117 phys_write32(((softc)->ohci_regs + (x)),(y)) 118 #define OHCI_READCSR(softc,x) \ 119 phys_read32(((softc)->ohci_regs + (x))) 164 #define ohci_td_from_transfer(softc,transfer) \ 165 ((softc) 310 eptstats(ohci_softc_t *softc) argument 335 _ohci_allocept(ohci_softc_t *softc) argument 379 _ohci_allocxfer(ohci_softc_t *softc) argument 427 _ohci_freeept(ohci_softc_t *softc,ohci_endpoint_t *e) argument 455 _ohci_freexfer(ohci_softc_t *softc,ohci_transfer_t *t) argument 476 _ohci_initpools(ohci_softc_t *softc) argument 564 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 681 _ohci_setupepts(ohci_softc_t *softc) argument 761 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 782 _ohci_queueept(ohci_softc_t *softc,ohci_endpoint_t *queue,ohci_endpoint_t *newept) argument 816 _ohci_deqept(ohci_softc_t *softc,ohci_endpoint_t *queue,ohci_endpoint_t *e) argument 862 ohci_intr_procdoneq(ohci_softc_t *softc) argument 969 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1081 ohci_softc_t *softc; local 1151 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1248 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1277 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1305 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1334 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1437 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local 1710 ohci_roothub_req(ohci_softc_t *softc,usb_device_request_t *req) argument 1972 ohci_roothub_statchg(ohci_softc_t *softc) argument 2023 ohci_softc_t *softc = (ohci_softc_t *) bus->ub_hwsoftc; local [all...] |
H A D | usbserial.c | 225 usbserial_softc_t *softc = (dev->ud_private); local 232 ur = usb_make_request(dev,softc->user_outpipe,bptr,len,UR_FLAG_OUT); 339 * device and allocating our softc here. 358 usbserial_softc_t *softc; local 364 softc = KMALLOC(sizeof(usbserial_softc_t),0); 365 memset(softc,0,sizeof(usbserial_softc_t)); 366 dev->ud_private = softc; 409 softc->user_inpipe = usb_open_pipe(dev,indscr); 410 softc->user_devinbufsize = GETUSBFIELD(indscr,wMaxPacketSize); 411 softc 483 usbserial_softc_t *softc; local 512 usb_uart_t *softc; local 539 usb_uart_t *softc = ctx->dev_softc; local 562 usb_uart_t *softc = ctx->dev_softc; local 577 usb_uart_t *softc = ctx->dev_softc; local 601 usb_uart_t *softc = ctx->dev_softc; local [all...] |
H A D | usbeth.c | 153 static void catc_init_device( usbeth_softc_t * softc ) 155 usbdev_t *dev = softc->dev; 176 catc_get_mac_addr( dev, softc->mac_addr ); 185 static void catc_open_device( usbeth_softc_t * softc ) 190 catc_set_reg( softc->dev, (CATC_ETH_ADDR_0_REG - i), softc->mac_addr[i] ); 193 catc_set_reg( softc->dev, CATC_ETH_CTRL_REG, 0x09 ); 289 static void peg_init_device( usbeth_softc_t * softc ) 291 usbdev_t *dev = softc->dev; 293 if( softc 471 usbeth_get_dev_addr( usbeth_softc_t * softc, uint8_t *mac_addr ) argument 514 usbeth_get_eth_frame( usbeth_softc_t * softc, unsigned char * buf ) argument 531 usbeth_send_eth_frame( usbeth_softc_t * softc, unsigned char * buf, int len ) argument 596 usbeth_softc_t *softc; local 681 usbeth_softc_t *softc = (usbeth_softc_t *) dev->ud_private; local [all...] |
H A D | usbmass.c | 256 usbmass_softc_t *softc; local 258 softc = (usbmass_softc_t *) dev->ud_private; 260 usb_clear_stall(dev,softc->umass_inpipe); 287 usbmass_softc_t *softc; local 290 softc = (usbmass_softc_t *) dev->ud_private; 305 PUTCBWFIELD(cbw,dCBWTag,softc->umass_curtag); 321 softc->umass_curtag++; 327 ur = usb_make_request(dev,softc->umass_outpipe,(uint8_t *) cbw, 337 ur = usb_make_request(dev,softc->umass_inpipe,sector, 347 ur = usb_make_request(dev,softc 385 usbmass_softc_t *softc; local 497 usbmass_softc_t *softc; local 589 usbmass_softc_t *softc; local 706 usbmass_softc_t *softc; local 803 usbmass_softc_t *softc; local 858 usbdisk_t *softc; local 893 usbdisk_t *softc = ctx->dev_softc; local 927 usbdisk_t *softc = ctx->dev_softc; local 1031 usbdisk_t *softc = ctx->dev_softc; local 1112 usbdisk_t *softc = ctx->dev_softc; local [all...] |
H A D | usbhid.c | 301 * uhid - the hid softc. 341 * uhid - the hid softc 410 * uhid - the hid softc 519 * usbhid_queue_intreq(dev,softc) 528 * softc - the usb hid softc 534 static void usbhid_queue_intreq(usbdev_t *dev,usbhid_softc_t *softc) argument 539 softc->uhid_ipipe, 540 softc->uhid_imsg,softc 569 usbhid_softc_t *softc; local [all...] |
H A D | usbhub.c | 252 * usbhub_queue_intreq(dev,softc) 259 * softc - hub-specific data 265 static void usbhub_queue_intreq(usbdev_t *dev,usbhub_softc_t *softc) argument 270 softc->uhub_ipipe, 271 softc->uhub_imsg,softc->uhub_ipipemps, 301 usbhub_softc_t *softc; local 309 softc = KMALLOC(sizeof(usbhub_softc_t),0); 310 memset(softc,0,sizeof(usbhub_softc_t)); 311 dev->ud_private = softc; 605 usbhub_softc_t *softc; local [all...] |
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/main/ |
H A D | cfe_attach.c | 132 * cfe_attach_idx(drv,idx,softc,bootinfo,description) 141 * softc - Unique information maintained for this device 154 int cfe_attach_idx(cfe_driver_t *drv,int idx,void *softc, argument 175 dev->dev_softc = softc; 190 * cfe_attach(drv,softc,bootinfo,description 198 * softc - Unique information maintained for this device 209 void cfe_attach(cfe_driver_t *drv,void *softc, argument 224 res = cfe_attach_idx(drv,idx,softc,bootinfo,description);
|