1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

Remove ISA attachments dependence on eisaconf.h

Noticed by: Takahashi Yoshihiro <nyan@jp.FreeBSD.org>
This commit is contained in:
Justin T. Gibbs 2004-08-18 16:31:56 +00:00
parent 44511bd390
commit eaa73a368b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133964
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$");
#include <dev/aic7xxx/aic7xxx_osm.h>
#include <sys/limits.h> /* For CHAR_BIT*/
#include <dev/eisa/eisaconf.h> /* For EISA constants */
#include <isa/isavar.h> /* For ISA attach glue */
@ -62,7 +61,7 @@ static int ahc_isa_attach(device_t dev);
*/
static struct aic7770_identity *
ahc_isa_find_device(bus_space_tag_t tag, bus_space_handle_t bsh) {
eisa_id_t id;
uint32_t id;
u_int id_size;
int i;
@ -93,7 +92,7 @@ ahc_isa_identify(driver_t *driver, device_t parent)
int rid;
rid = 0;
iobase = (slot * EISA_SLOT_SIZE) + AHC_EISA_SLOT_OFFSET;
iobase = (slot * AHC_EISA_SLOT_SIZE) + AHC_EISA_SLOT_OFFSET;
regs = bus_alloc_resource(parent, SYS_RES_IOPORT, &rid,
iobase, iobase, AHC_EISA_IOSIZE,
RF_ACTIVE);

View File

@ -1175,6 +1175,7 @@ struct aic7770_identity {
extern struct aic7770_identity aic7770_ident_table[];
extern const int ahc_num_aic7770_devs;
#define AHC_EISA_SLOT_SIZE 0x1000
#define AHC_EISA_SLOT_OFFSET 0xc00
#define AHC_EISA_IOSIZE 0x100