Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/scsipi Remove this file; ATAPI_READ_FORMAT_CAPACITIE...
details: https://anonhg.NetBSD.org/src/rev/18976ac18bd8
branches: trunk
changeset: 553205:18976ac18bd8
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sun Oct 12 17:57:13 2003 +0000
description:
Remove this file; ATAPI_READ_FORMAT_CAPACITIES is the same as
READ_FORMAT_CAPACITIES; atapi_flex_geometry_page should probably be the same as
scsi_disk's page_flex_geometry.
diffstat:
sys/dev/scsipi/atapi_disk.h | 100 --------------------------------------------
1 files changed, 0 insertions(+), 100 deletions(-)
diffs (104 lines):
diff -r b1168509cced -r 18976ac18bd8 sys/dev/scsipi/atapi_disk.h
--- a/sys/dev/scsipi/atapi_disk.h Sun Oct 12 17:13:46 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,100 +0,0 @@
-/* $NetBSD: atapi_disk.h,v 1.5 2003/09/17 19:14:56 mycroft Exp $ */
-
-/*
- * Copyright 1998
- * Digital Equipment Corporation. All rights reserved.
- *
- * This software is furnished under license and may be used and
- * copied only in accordance with the following terms and conditions.
- * Subject to these conditions, you may download, copy, install,
- * use, modify and distribute this software in source and/or binary
- * form. No title or ownership is transferred hereby.
- *
- * 1) Any source code used, modified or distributed must reproduce
- * and retain this copyright notice and list of conditions as
- * they appear in the source file.
- *
- * 2) No right is granted to use any trade name, trademark, or logo of
- * Digital Equipment Corporation. Neither the "Digital Equipment
- * Corporation" name nor any trademark or logo of Digital Equipment
- * Corporation may be used to endorse or promote products derived
- * from this software without the prior written permission of
- * Digital Equipment Corporation.
- *
- * 3) This software is provided "AS-IS" and any express or implied
- * warranties, including but not limited to, any implied warranties
- * of merchantability, fitness for a particular purpose, or
- * non-infringement are disclaimed. In no event shall DIGITAL be
- * liable for any damages whatsoever, and in particular, DIGITAL
- * shall not be liable for special, indirect, consequential, or
- * incidental damages or damages for lost profits, loss of
- * revenue or loss of use, whether such damages arise in contract,
- * negligence, tort, under statute, in equity, at law or otherwise,
- * even if advised of the possibility of such damage.
- */
-
-/*
- * Definitions of commands and structures specific to ATAPI disks.
- *
- * Chris Demetriou, January 10, 1998.
- */
-
-#define ATAPI_READ_FORMAT_CAPACITIES 0x23
-struct atapi_read_format_capacities {
- u_int8_t opcode;
- u_int8_t byte2;
- u_int8_t reserved1[5];
- u_int8_t length[2];
- u_int8_t reserved2[3];
-};
-
-struct atapi_capacity_list_header {
- u_int8_t reserved[3];
- u_int8_t length;
-};
-
-struct atapi_capacity_descriptor {
- u_int8_t nblks[4];
- u_int8_t byte5;
- u_int8_t blklen[3];
-};
-
-/* codes only valid in the current/maximum capacity descriptor */
-#define ATAPI_CAP_DESC_CODE_MASK 0x3
-#define ATAPI_CAP_DESC_CODE_RESERVED 0x0
-#define ATAPI_CAP_DESC_CODE_UNFORMATTED 0x1
-#define ATAPI_CAP_DESC_CODE_FORMATTED 0x2
-#define ATAPI_CAP_DESC_CODE_NONE 0x3
-
-#define ATAPI_CAP_DESC_SIZE(n) \
- (sizeof(struct atapi_capacity_list_header) + \
- (n) * sizeof(struct atapi_capacity_descriptor))
-#define ATAPI_CAP_DESC_OFFSET_HEADER 0
-#define ATAPI_CAP_DESC_OFFSET_DESC(n) ATAPI_CAP_DESC_SIZE(n)
-
-struct atapi_flex_geometry_page {
- u_int8_t pg_code; /* page code */
- u_int8_t pg_length; /* page length */
- u_int8_t xfr_rate[2]; /* transfer rate, Kb/sec */
- u_int8_t nheads; /* number of heads */
- u_int8_t ph_sec_tr; /* physical sectors per track */
- u_int8_t blklen[2]; /* block length (bytes per sector) */
- u_int8_t ncyl[2]; /* number of cylinders */
- u_int8_t reserved1[18];
- u_int8_t rot_rate[2]; /* medium rotation rate (RPM) */
-};
-
-#define ATAPI_FLEX_GEOMETRY_PAGE 0x05
-
-union atapi_sd_pages {
- u_int8_t page_code;
- struct atapi_flex_geometry_page flex_geometry;
-};
-
-struct atapi_sd_mode_data {
- struct scsipi_mode_header_big header;
- union atapi_sd_pages pages;
-};
-
-#define FLEXGEOMETRYPAGESIZE \
- (sizeof(struct scsipi_mode_header_big) + sizeof(struct atapi_flex_geometry_page))
Home |
Main Index |
Thread Index |
Old Index