Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ppc/ppc.c
Context not available. | |||||
#endif | #endif | ||||
struct ppc_data *ppc; | struct ppc_data *ppc; | ||||
int error; | int error; | ||||
u_long port; | rman_res_t port; | ||||
/* | /* | ||||
* Allocate the ppc_data structure. | * Allocate the ppc_data structure. | ||||
Context not available. | |||||
next_bios_ppc += 1; | next_bios_ppc += 1; | ||||
if (bootverbose) | if (bootverbose) | ||||
device_printf(dev, | device_printf(dev, | ||||
"parallel port found at 0x%lx\n", port); | "parallel port found at 0x%jx\n", port); | ||||
} | } | ||||
#else | #else | ||||
if ((next_bios_ppc < BIOS_MAX_PPC) && | if ((next_bios_ppc < BIOS_MAX_PPC) && | ||||
Context not available. | |||||
port = *(BIOS_PORTS + next_bios_ppc++); | port = *(BIOS_PORTS + next_bios_ppc++); | ||||
if (bootverbose) | if (bootverbose) | ||||
device_printf(dev, | device_printf(dev, | ||||
"parallel port found at 0x%lx\n", port); | "parallel port found at 0x%jx\n", port); | ||||
} else { | } else { | ||||
device_printf(dev, "parallel port not found.\n"); | device_printf(dev, "parallel port not found.\n"); | ||||
return (ENXIO); | return (ENXIO); | ||||
Context not available. | |||||
*/ | */ | ||||
struct resource * | struct resource * | ||||
ppc_alloc_resource(device_t bus, device_t child, int type, int *rid, | ppc_alloc_resource(device_t bus, device_t child, int type, int *rid, | ||||
u_long start, u_long end, u_long count, u_int flags) | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | ||||
{ | { | ||||
struct ppc_data *ppc = DEVTOSOFTC(bus); | struct ppc_data *ppc = DEVTOSOFTC(bus); | ||||
Context not available. |