Moved prototypes of isa_alloc_resourcev() and isa_load_resourcev() to
isa/isavar.h, and added needed includes.
This commit is contained in:
parent
6716c905c9
commit
97ae0fe84c
@ -49,6 +49,8 @@
|
||||
#include <dev/fe/if_fereg.h>
|
||||
#include <dev/fe/if_fevar.h>
|
||||
|
||||
#include <isa/isavar.h>
|
||||
|
||||
/*
|
||||
* Cbus specific code.
|
||||
*/
|
||||
|
@ -72,7 +72,6 @@
|
||||
#ifndef _I386_BUS_PC98_H_
|
||||
#define _I386_BUS_PC98_H_
|
||||
|
||||
#include <sys/bus.h>
|
||||
#include <machine/cpufunc.h>
|
||||
|
||||
/*
|
||||
@ -121,15 +120,6 @@ typedef struct {
|
||||
size_t bsh_ressz;
|
||||
}* bus_space_handle_t;
|
||||
|
||||
/*
|
||||
* Allocate discontinuous resources for ISA bus.
|
||||
*/
|
||||
struct resource *
|
||||
isa_alloc_resourcev(device_t child, int type, int *rid,
|
||||
bus_addr_t *res, bus_size_t count, u_int flags);
|
||||
int
|
||||
isa_load_resourcev(struct resource *re, bus_addr_t *res, bus_size_t count);
|
||||
|
||||
/*
|
||||
* Map a region of device bus space into CPU virtual address space.
|
||||
*/
|
||||
|
@ -171,6 +171,19 @@ extern void isa_dma_release __P((int chan));
|
||||
extern int isa_dmastatus __P((int chan));
|
||||
extern int isa_dmastop __P((int chan));
|
||||
|
||||
#ifdef PC98
|
||||
#include <machine/bus.h>
|
||||
|
||||
/*
|
||||
* Allocate discontinuous resources for ISA bus.
|
||||
*/
|
||||
struct resource *
|
||||
isa_alloc_resourcev(device_t child, int type, int *rid,
|
||||
bus_addr_t *res, bus_size_t count, u_int flags);
|
||||
int
|
||||
isa_load_resourcev(struct resource *re, bus_addr_t *res, bus_size_t count);
|
||||
#endif
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_ISA_ISAVAR_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user