64-bit fixes for sis900 network driver.
This commit is contained in:
parent
be2f57f0de
commit
3c230971db
@ -74,7 +74,7 @@ SYSTEM_ADD_ONS_TRANSLATORS = BMPTranslator EXRTranslator GIFTranslator
|
||||
SYSTEM_ADD_ONS_DRIVERS_GRAPHICS = vesa ;
|
||||
SYSTEM_ADD_ONS_DRIVERS_NET = 3com atheros813x ar81xx attansic_l1 attansic_l2
|
||||
broadcom440x broadcom570x dec21xxx etherpci ipro100 ipro1000 jmicron2x0
|
||||
marvell_yukon nforce pcnet pegasus rtl8139 rtl81xx sis19x syskonnect
|
||||
marvell_yukon nforce pcnet pegasus rtl8139 rtl81xx sis19x sis900 syskonnect
|
||||
via_rhine wb840
|
||||
;
|
||||
|
||||
|
@ -149,12 +149,12 @@ sis900_txInterrupt(struct sis_info *info)
|
||||
|
||||
/* Does the device generate extra interrupts? */
|
||||
if (status & SiS900_DESCR_OWN) {
|
||||
struct buffer_desc *descriptor = (void *)read32(info->registers + SiS900_MAC_Tx_DESCR);
|
||||
uint32 descriptor = read32(info->registers + SiS900_MAC_Tx_DESCR);
|
||||
int16 that;
|
||||
for (that = 0;
|
||||
that < NUM_Tx_DESCR
|
||||
&& physicalAddress(&info->txDescriptor[that],
|
||||
sizeof(struct buffer_desc)) != (addr_t)descriptor;
|
||||
sizeof(struct buffer_desc)) != descriptor;
|
||||
that++) {
|
||||
}
|
||||
if (that == NUM_Tx_DESCR)
|
||||
@ -172,7 +172,7 @@ sis900_txInterrupt(struct sis_info *info)
|
||||
|
||||
if (status & (SiS900_DESCR_Tx_ABORT | SiS900_DESCR_Tx_UNDERRUN
|
||||
| SiS900_DESCR_Tx_OOW_COLLISION)) {
|
||||
dprintf("tx error: %lx\n", status);
|
||||
dprintf("tx error: %" B_PRIx32 "\n", status);
|
||||
} else
|
||||
info->txDescriptor[info->txInterruptIndex].status = 0;
|
||||
|
||||
@ -740,7 +740,7 @@ sis900_createRings(struct sis_info *info)
|
||||
|
||||
// initialize transmit buffer descriptors
|
||||
for (i = 1; i < NUM_Tx_DESCR; i++)
|
||||
info->txBuffer[i] = (void *)(((uint32)info->txBuffer[0]) + (i * BUFFER_SIZE));
|
||||
info->txBuffer[i] = (void *)(((addr_t)info->txBuffer[0]) + (i * BUFFER_SIZE));
|
||||
|
||||
for (i = 0; i < NUM_Tx_DESCR; i++) {
|
||||
info->txDescriptor[i].status = 0;
|
||||
@ -765,7 +765,7 @@ sis900_createRings(struct sis_info *info)
|
||||
|
||||
// initialize receive buffer descriptors
|
||||
for (i = 1; i < NUM_Rx_DESCR; i++)
|
||||
info->rxBuffer[i] = (void *)(((uint32)info->rxBuffer[0]) + (i * BUFFER_SIZE));
|
||||
info->rxBuffer[i] = (void *)(((addr_t)info->rxBuffer[0]) + (i * BUFFER_SIZE));
|
||||
|
||||
for (i = 0; i < NUM_Rx_DESCR; i++) {
|
||||
info->rxDescriptor[i].status = MAX_FRAME_SIZE;
|
||||
|
Loading…
Reference in New Issue
Block a user