summaryrefslogtreecommitdiffstats
path: root/sys/dev/aha/aha.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-02-04 16:45:39 +0000
committerimp <imp@FreeBSD.org>2001-02-04 16:45:39 +0000
commit8195cce26135cca7ab9a7e94917e55c5501d8cc1 (patch)
tree4e4f21ee93ea0c5d3cb2e43ee72817e80d390b56 /sys/dev/aha/aha.c
parent709379c1aeaadc2770d45e2cb1bc6428c65f09d3 (diff)
downloadFreeBSD-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/aha.c')
-rw-r--r--sys/dev/aha/aha.c24
1 files changed, 0 insertions, 24 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);
}
OpenPOWER on IntegriCloud