diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c index e138cce3f6fe..cb4d33f7ef32 100644 --- a/sys/pccard/pccard_nbk.c +++ b/sys/pccard/pccard_nbk.c @@ -297,7 +297,7 @@ pccard_release_resource(device_t bus, device_t child, int type, int rid, } static int -pccard_read_ivar(device_t bus, device_t child, int which, u_char *result) +pccard_read_ivar(device_t bus, device_t child, int which, uintptr_t *result) { struct pccard_devinfo *devi = PCCARD_DEVINFO(child); diff --git a/sys/pccard/pcicvar.h b/sys/pccard/pcicvar.h index ff986c95d21f..79d65a8d9c52 100644 --- a/sys/pccard/pcicvar.h +++ b/sys/pccard/pcicvar.h @@ -33,8 +33,8 @@ struct pcic_slot { char revision; /* Device Revision */ struct slot *slt; /* Back ptr to slot */ struct pcic_softc *sc; /* Back pointer to softc */ - u_char (*getb)(struct pcic_slot *, int); - void (*putb)(struct pcic_slot *, int, u_char); + u_int8_t (*getb)(struct pcic_slot *, int); + void (*putb)(struct pcic_slot *, int, u_int8_t); bus_space_tag_t bst; bus_space_handle_t bsh; driver_intr_t *intr;