summaryrefslogtreecommitdiff
path: root/sys/dev/ic/wdcevent.h
diff options
context:
space:
mode:
authorGrigoriy Orlov <gluk@cvs.openbsd.org>2002-05-03 09:18:47 +0000
committerGrigoriy Orlov <gluk@cvs.openbsd.org>2002-05-03 09:18:47 +0000
commit7547ab5140298f0718d9139ff9662ccf02fb8774 (patch)
tree6d0103d56ed61eb74a58a496009f62bced814a51 /sys/dev/ic/wdcevent.h
parent54cfd3bb630d115b1759aad691223f6374f0d1db (diff)
LBA48 support.
Adopted from NetBSD by Alexander Yurchenko <grange@openbsd.ru>. costa@ ok.
Diffstat (limited to 'sys/dev/ic/wdcevent.h')
-rw-r--r--sys/dev/ic/wdcevent.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/ic/wdcevent.h b/sys/dev/ic/wdcevent.h
index 7cd08fd5311..0908455efa8 100644
--- a/sys/dev/ic/wdcevent.h
+++ b/sys/dev/ic/wdcevent.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdcevent.h,v 1.1 2002/03/16 17:12:09 csapuntz Exp $ */
+/* $OpenBSD: wdcevent.h,v 1.2 2002/05/03 09:18:46 gluk Exp $ */
/*
* Copyright (c) 2001 Constantine Sapuntzakis
@@ -92,4 +92,14 @@ static __inline void WDC_LOG_REG(struct channel_softc *chp,
wdc_log(chp, 9, 3, record);
}
+static __inline void WDC_LOG_ATA_CMDEXT(struct channel_softc *chp,
+ u_int8_t lba_hi1, u_int8_t lba_hi2, u_int8_t lba_mi1, u_int8_t lba_mi2,
+ u_int8_t lba_lo1, u_int8_t lba_lo2, u_int8_t count1, u_int8_t count2,
+ u_int8_t command) {
+ char record[9] = { lba_hi1, lba_hi2, lba_mi1, lba_mi2,
+ lba_lo1, lba_lo2, count1, count2, command };
+
+ wdc_log(chp, 10, 9, record);
+}
+
#endif