summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-all.h
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2008-04-11 11:30:27 +0000
committersos <sos@FreeBSD.org>2008-04-11 11:30:27 +0000
commite7012ad33098903c6d2cd65d0210c9e2ad229c7f (patch)
tree8fa27bd351846e77967ad0e3d556eb1f6ab38be0 /sys/dev/ata/ata-all.h
parent5dd963773ae028c909b38502e98d913b021614d9 (diff)
downloadFreeBSD-src-e7012ad33098903c6d2cd65d0210c9e2ad229c7f.zip
FreeBSD-src-e7012ad33098903c6d2cd65d0210c9e2ad229c7f.tar.gz
Fix the brokenness in the former commit, sorry for the mess.
The problem is that the PM support is part of a much larger WIP here, but due to popular demand I decided to get some of it imported. Also I forgot the mention: HW sponsored by: Vitsch Electronics / VEHosting
Diffstat (limited to 'sys/dev/ata/ata-all.h')
-rw-r--r--sys/dev/ata/ata-all.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/ata/ata-all.h b/sys/dev/ata/ata-all.h
index 6470e35..5065661 100644
--- a/sys/dev/ata/ata-all.h
+++ b/sys/dev/ata/ata-all.h
@@ -581,12 +581,9 @@ void ata_generic_reset(device_t dev);
int ata_generic_command(struct ata_request *request);
/* macros for alloc/free of struct ata_request */
-extern uma_zone_t ata_request_zone;
-#define ata_alloc_request() uma_zalloc(ata_request_zone, M_NOWAIT | M_ZERO)
-#define ata_free_request(request) { \
- if (!(request->flags & ATA_R_DANGER2)) \
- uma_zfree(ata_request_zone, request); \
- }
+struct ata_request *ata_alloc_request(device_t dev);
+void ata_free_request(struct ata_request *request);
+
/* macros for alloc/free of struct ata_composite */
extern uma_zone_t ata_composite_zone;
#define ata_alloc_composite() uma_zalloc(ata_composite_zone, M_NOWAIT | M_ZERO)
OpenPOWER on IntegriCloud