Add the caching parameters mode page.
This commit is contained in:
parent
f2742305e4
commit
2cf7638731
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: scsi_disk.h,v 1.17 1998/10/30 02:07:15 thorpej Exp $ */
|
||||
/* $NetBSD: scsi_disk.h,v 1.18 2001/09/01 02:39:21 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* SCSI-specific interface description
|
||||
|
@ -265,4 +265,21 @@ union scsi_disk_pages {
|
|||
u_int8_t reserved3;
|
||||
u_int8_t reserved4;
|
||||
} flex_geometry;
|
||||
struct page_caching {
|
||||
u_int8_t pg_code; /* page code (should be 8) */
|
||||
u_int8_t pg_length; /* page length (should be 0x0a) */
|
||||
u_int8_t flags; /* cache parameter flags */
|
||||
#define CACHING_RCD 0x01 /* read cache disable */
|
||||
#define CACHING_MF 0x02 /* multiplcation factor */
|
||||
#define CACHING_WCE 0x04 /* write cache enable (write-back) */
|
||||
u_int8_t ret_prio; /* retention priority */
|
||||
#define READ_RET_PRIO_SHIFT 4
|
||||
#define RET_PRIO_DONT_DISTINGUISH 0x0
|
||||
#define RET_PRIO_REPLACE_READ_WRITE 0x1
|
||||
#define RET_PRIO_REPLACE_PREFETCH 0xf
|
||||
u_int8_t dis_prefetch_xfer_len[2];
|
||||
u_int8_t min_prefetch[2];
|
||||
u_int8_t max_prefetch[2];
|
||||
u_int8_t max_prefetch_ceiling[2];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue