diff options
author | peter <peter@FreeBSD.org> | 1999-07-02 04:17:16 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-07-02 04:17:16 +0000 |
commit | 4bf50a5ad3199cc5461413cac1983bc1a244420f (patch) | |
tree | aa0c83048648c9c8d7001e3e5f0f9fd4837554a5 /sys/pci/if_xl.c | |
parent | a8f734fb29a19d5a698ad58e323c5bc287e273ca (diff) | |
download | FreeBSD-src-4bf50a5ad3199cc5461413cac1983bc1a244420f.zip FreeBSD-src-4bf50a5ad3199cc5461413cac1983bc1a244420f.tar.gz |
Change the cast in pci_map_port() from u_short * to pci_port_t * so it
compiles cleanly on the Alpha. (On the alpha, the port type is an int,
not a short).
Cast a couple of pointers to ints via 'uintptr_t' rather than 'unsigned
int' since uintptr_t is long (64 bit) on Alpha, as are pointers.
Diffstat (limited to 'sys/pci/if_xl.c')
-rw-r--r-- | sys/pci/if_xl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index 25ffed7..4dcdbc4 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_xl.c,v 1.39 1999/05/30 18:11:47 wpaul Exp $ + * $Id: if_xl.c,v 1.40 1999/06/01 19:04:23 wpaul Exp $ */ /* @@ -160,7 +160,7 @@ #if !defined(lint) static const char rcsid[] = - "$Id: if_xl.c,v 1.39 1999/05/30 18:11:47 wpaul Exp $"; + "$Id: if_xl.c,v 1.40 1999/06/01 19:04:23 wpaul Exp $"; #endif /* @@ -1464,7 +1464,7 @@ xl_attach(config_id, unit) } if (!pci_map_port(config_id, XL_PCI_LOIO, - (u_short *)&(sc->xl_bhandle))) { + (pci_port_t *)&(sc->xl_bhandle))) { printf ("xl%d: couldn't map port\n", unit); printf ("xl%d: WARNING: check your BIOS and " "set 'Plug & Play OS' to 'no'\n", unit); |