Changeset d8d8bbd in mainline
- Timestamp:
- 2011-01-06T22:22:37Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ba21938
- Parents:
- 9cdac5a
- Location:
- uspace/srv/hw/netif/dp8390
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/dp8390.c
r9cdac5a rd8d8bbd 375 375 } 376 376 377 void dp_check_ints(int nil_phone, device_id_t device_id, dpeth_t *dep, int isr) 377 static uint8_t isr_acknowledge(dpeth_t *dep) 378 { 379 uint8_t isr = inb_reg0(dep, DP_ISR) & 0x7f; 380 if (isr != 0) 381 outb_reg0(dep, DP_ISR, isr); 382 383 return isr; 384 } 385 386 void dp_check_ints(int nil_phone, device_id_t device_id, dpeth_t *dep, uint8_t isr) 378 387 { 379 388 int tsr; … … 383 392 fprintf(stderr, "dp8390: got premature interrupt\n"); 384 393 385 for (; isr; isr = inb_reg0(dep, DP_ISR)) { 386 outb_reg0(dep, DP_ISR, isr); 387 394 for (; isr != 0; isr = isr_acknowledge(dep)) { 388 395 if (isr & (ISR_PTX | ISR_TXE)) { 389 396 if (isr & ISR_TXE) -
uspace/srv/hw/netif/dp8390/dp8390_drv.h
r9cdac5a rd8d8bbd 56 56 * @param[in,out] dep The network interface structure. 57 57 */ 58 void dp_check_ints(int nil_phone, device_id_t device_id, dpeth_t *dep, int isr);58 void dp_check_ints(int nil_phone, device_id_t device_id, dpeth_t *dep, uint8_t isr); 59 59 60 60 /** Probes and initializes the network interface. -
uspace/srv/hw/netif/dp8390/dp8390_module.c
r9cdac5a rd8d8bbd 92 92 }, 93 93 { 94 .cmd = CMD_PIO_WRITE_ 8,94 .cmd = CMD_PIO_WRITE_A_8, 95 95 .addr = NULL, 96 . value = 0xff96 .srcarg = 3 97 97 }, 98 98 {
Note:
See TracChangeset
for help on using the changeset viewer.