diff options
author | imp <imp@FreeBSD.org> | 2001-02-04 16:45:39 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-02-04 16:45:39 +0000 |
commit | 8195cce26135cca7ab9a7e94917e55c5501d8cc1 (patch) | |
tree | 4e4f21ee93ea0c5d3cb2e43ee72817e80d390b56 /sys/dev/aha | |
parent | 709379c1aeaadc2770d45e2cb1bc6428c65f09d3 (diff) | |
download | FreeBSD-src-8195cce26135cca7ab9a7e94917e55c5501d8cc1.zip FreeBSD-src-8195cce26135cca7ab9a7e94917e55c5501d8cc1.tar.gz |
Remove NAHA, NAHATOT and aha_softcs and related code. It was unused
except for setting it. Also remove count from aha and replace it with
optional.
Also add commented out pccard lines for all the old card drivers.
They have to be commented out until they are converted because it
causes problems in NEWCARD.
Diffstat (limited to 'sys/dev/aha')
-rw-r--r-- | sys/dev/aha/aha.c | 24 | ||||
-rw-r--r-- | sys/dev/aha/ahareg.h | 6 |
2 files changed, 0 insertions, 30 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c index d42a3e8..ec2f012 100644 --- a/sys/dev/aha/aha.c +++ b/sys/dev/aha/aha.c @@ -76,8 +76,6 @@ #include <dev/aha/ahareg.h> -struct aha_softc *aha_softcs[NAHATOT]; - #define PRVERB(x) if (bootverbose) printf x /* Macro to determine that a rev is potentially a new valid one @@ -205,21 +203,6 @@ aha_alloc(int unit, bus_space_tag_t tag, bus_space_handle_t bsh) { struct aha_softc *aha; - if (unit != AHA_TEMP_UNIT) { - if (unit >= NAHATOT) { - printf("aha: unit number (%d) too high\n", unit); - return NULL; - } - - /* - * Allocate a storage area for us - */ - if (aha_softcs[unit]) { - printf("aha%d: memory already allocated\n", unit); - return NULL; - } - } - aha = malloc(sizeof(struct aha_softc), M_DEVBUF, M_NOWAIT | M_ZERO); if (!aha) { printf("aha%d: cannot malloc!\n", unit); @@ -233,10 +216,6 @@ aha_alloc(int unit, bus_space_tag_t tag, bus_space_handle_t bsh) aha->bsh = bsh; aha->ccb_sg_opcode = INITIATOR_SG_CCB_WRESID; aha->ccb_ccb_opcode = INITIATOR_CCB_WRESID; - - if (aha->unit != AHA_TEMP_UNIT) { - aha_softcs[unit] = aha; - } return (aha); } @@ -279,9 +258,6 @@ aha_free(struct aha_softc *aha) bus_dma_tag_destroy(aha->mailbox_dmat); case 0: } - if (aha->unit != AHA_TEMP_UNIT) { - aha_softcs[aha->unit] = NULL; - } free(aha, M_DEVBUF); } diff --git a/sys/dev/aha/ahareg.h b/sys/dev/aha/ahareg.h index 339eace..914bed1 100644 --- a/sys/dev/aha/ahareg.h +++ b/sys/dev/aha/ahareg.h @@ -36,8 +36,6 @@ #ifndef _AHAREG_H_ #define _AHAREG_H_ -#include "aha.h" - #include <sys/queue.h> #include <cam/scsi/scsi_all.h> @@ -426,10 +424,6 @@ int aha_probe(struct aha_softc *); #define aha_outb(aha, port, value) \ bus_space_write_1((aha)->tag, (aha)->bsh, port, value) -/* XXX BAD */ -#define EXTRA_AHA 4 -#define NAHATOT (NAHA + EXTRA_AHA) - #define ADP0100_PNP 0x00019004 /* ADP0100 */ #define AHA1540_PNP 0x40159004 /* ADP1540 */ #define AHA1542_PNP 0x42159004 /* ADP1542 */ |