Moved prototypes of isa_alloc_resourcev() and isa_load_resourcev() to

isa/isavar.h, and added needed includes.
This commit is contained in:
Yoshihiro Takahashi 2000-10-22 16:48:08 +00:00
parent 6716c905c9
commit 97ae0fe84c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67442
3 changed files with 15 additions and 10 deletions

View file

@ -49,6 +49,8 @@
#include <dev/fe/if_fereg.h>
#include <dev/fe/if_fevar.h>
#include <isa/isavar.h>
/*
* Cbus specific code.
*/

View file

@ -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.
*/

View file

@ -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_ */