diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-11-06 22:58:55 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-11-06 22:58:55 +0000 |
| commit | f77f866d283b37bda3024b3e47beabad6f1cb010 (patch) | |
| tree | b9c644fe435844323fa950fc91719ced8e19e05e /sys/dev/hea | |
| parent | 246d578cba9dcda71cdb21ffb9de1e8216b9cfa6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/hea')
| -rw-r--r-- | sys/dev/hea/eni_init.c | 2 | ||||
| -rw-r--r-- | sys/dev/hea/eni_receive.c | 8 | ||||
| -rw-r--r-- | sys/dev/hea/eni_transmit.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/hea/eni_init.c b/sys/dev/hea/eni_init.c index 386e11d00e90f..e4c671e70973f 100644 --- a/sys/dev/hea/eni_init.c +++ b/sys/dev/hea/eni_init.c @@ -94,7 +94,7 @@ eni_init ( eup ) for ( order = -1; words; order++ ) words >>= 1; eup->eu_midway[MIDWAY_TXPLACE] = - (order << TXSIZE_SHIFT) | ((int)eup->eu_txbuf >> ENI_LOC_PREDIV); + (order << TXSIZE_SHIFT) | ((intptr_t)eup->eu_txbuf >> ENI_LOC_PREDIV); eup->eu_txpos = eup->eu_midway[MIDWAY_DESCR] & 0x7FFF; /* * Set first word of unack'ed data to start diff --git a/sys/dev/hea/eni_receive.c b/sys/dev/hea/eni_receive.c index a3c1d765470f9..1ad4478f66327 100644 --- a/sys/dev/hea/eni_receive.c +++ b/sys/dev/hea/eni_receive.c @@ -148,8 +148,8 @@ eni_do_service ( eup ) * Find the start of the adapter buffer for this VC. */ rxp = (u_long *) - ((int)(((vci_hdr >> VCI_LOC_SHIFT ) & VCI_LOC_MASK) - << ENI_LOC_PREDIV) + (int)eup->eu_ram); + ((intptr_t)(((vci_hdr >> VCI_LOC_SHIFT ) & VCI_LOC_MASK) + << ENI_LOC_PREDIV) + (intptr_t)eup->eu_ram); /* * Locate incoming VCC for this PDU and find where we * should next read from. @@ -798,7 +798,7 @@ eni_recv_drain ( eup ) KB_DATASTART ( m, up, u_long * ); *((int *)up) = (int)eni_recv_stack; up++; - *((int *)up) = (int)evp; + *((int *)up) = (int)(intptr_t)evp; /* * Schedule callback */ @@ -876,7 +876,7 @@ eni_recv_stack ( tok, m ) * Send the data up the stack */ STACK_CALL ( CPCS_UNITDATA_SIG, evp->ev_upper, - (void *)evp->ev_toku, evp->ev_connvc, (int)m, 0, err ); + (void *)evp->ev_toku, evp->ev_connvc, (intptr_t)m, 0, err ); if ( err ) { KB_FREEALL ( m ); } diff --git a/sys/dev/hea/eni_transmit.c b/sys/dev/hea/eni_transmit.c index 914ef325bf3c3..8d02f48c83817 100644 --- a/sys/dev/hea/eni_transmit.c +++ b/sys/dev/hea/eni_transmit.c @@ -483,7 +483,7 @@ retry: * Get start of data onto full-word alignment */ KB_DATASTART ( m, cp, caddr_t ); - if ((align = ((u_int)cp) & (sizeof(u_long)-1)) != 0) { + if ((align = ((uintptr_t)cp) & (sizeof(u_long)-1)) != 0) { /* * Gotta slide the data up */ @@ -748,7 +748,7 @@ retry: */ tx_send = (Eni_mem) ((((int)eup->eu_midway[MIDWAY_TXPLACE] & 0x7ff) << ENI_LOC_PREDIV) + - (int)eup->eu_ram); + (intptr_t)eup->eu_ram); /* * Set descriptor word |
