summaryrefslogtreecommitdiff
path: root/include/device
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2001-01-09 03:20:39 +0000
committerMarcus Brinkmann <marcus@gnu.org>2001-01-09 03:20:39 +0000
commitfc67fa5f1239e49d5c86cc1bed3b53f1ef4a6f74 (patch)
treee06e022c9010078c645e4149ec796eff58115709 /include/device
parentcadc821bbcdfb11bf7e1148727ad77485ad16372 (diff)
2001-01-09 Marcus Brinkmann <marcus@gnu.org>
* include/device/device_types.h: New get_status call DEV_GET_RECORDS to get the number of records of a device (rather than the number of bytes). Accordingly define DEV_GET_RECORDS_DEVICE_RECORDS, DEV_GET_RECORDS_RECORD_SIZE and DEV_GET_RECORDS_COUNT. * linux/dev/glue/block.c (device_get_status): Handle DEV_GET_RECORDS.
Diffstat (limited to 'include/device')
-rw-r--r--include/device/device_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/device/device_types.h b/include/device/device_types.h
index d02b8f1..08eec4a 100644
--- a/include/device/device_types.h
+++ b/include/device/device_types.h
@@ -110,6 +110,11 @@ typedef int dev_status_data_t[DEV_STATUS_MAX];
# define DEV_GET_SIZE_DEVICE_SIZE 0 /* 0 if unknown */
# define DEV_GET_SIZE_RECORD_SIZE 1 /* 1 if sequential */
#define DEV_GET_SIZE_COUNT 2
+/* size a device in record numbers, not bytes */
+#define DEV_GET_RECORDS 1
+# define DEV_GET_RECORDS_DEVICE_RECORDS 0 /* 0 if unknown */
+# define DEV_GET_RECORDS_RECORD_SIZE 1 /* 1 if sequential */
+#define DEV_GET_RECORDS_COUNT 2
/*
* Device error codes