diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2005-07-10 15:26:19 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2005-07-10 15:26:19 +0000 |
commit | 8c9c2450a1368bc135be1cb09a0bc30d11a68b50 (patch) | |
tree | dd1050670d2a9337ff308cf8e162f026fcc2ddb5 /sys | |
parent | f4b0c20edaa048753978c36e60eca093220f500e (diff) |
Add diskarray structure for modern controllers.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/amireg.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/sys/dev/ic/amireg.h b/sys/dev/ic/amireg.h index c272c2950a6..00015eddcab 100644 --- a/sys/dev/ic/amireg.h +++ b/sys/dev/ic/amireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: amireg.h,v 1.11 2005/05/31 04:34:20 marco Exp $ */ +/* $OpenBSD: amireg.h,v 1.12 2005/07/10 15:26:18 marco Exp $ */ /* * Copyright (c) 2000 Michael Shalayeff @@ -566,6 +566,36 @@ struct ami_diskarray { } ada_pdrv[AMI_MAX_PDRIVES]; }; +struct ami_big_diskarray { + u_int8_t ada_nld; + u_int8_t ada_pad[3]; + struct { + u_int8_t adl_spandepth; + u_int8_t adl_raidlvl; + u_int8_t adl_rdahead; + u_int8_t adl_stripesz; + u_int8_t adl_status; + u_int8_t adl_wrpolicy; + u_int8_t adl_directio; + u_int8_t adl_nstripes; + struct { + u_int32_t ads_start; + u_int32_t ads_length; /* blocks */ + struct { + u_int8_t add_channel; + u_int8_t add_target; + } ads_devs[AMI_BIG_MAX_DEVDEPTH]; + } adl_spans[AMI_BIG_MAX_SPANDEPTH]; + } ada_ldrv[AMI_BIG_MAX_LDRIVES]; + struct { + u_int8_t adp_type; /* SCSI device type */ + u_int8_t adp_ostatus; /* status during config */ + u_int8_t adp_tagdepth; /* level of tagging */ + u_int8_t adp_sneg; /* sync negotiation */ + u_int32_t adp_size; + } ada_pdrv[AMI_BIG_MAX_PDRIVES]; +}; + struct ami_scsisense { u_int8_t ase_end; struct { |