File:  [Net/2] / Net2 / scsi / cddefs.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:15:24 2018 UTC (8 years, 3 months ago) by root
Branches: NetBSD, MAIN
CVS tags: NetBSD09, HEAD
NetBSD 0.9

/*
 * 	cddefs.h,v 1.3 1993/05/20 03:46:20 cgd Exp
 */

struct cd_data {
	int	flags;
#define	CDVALID		0x02		/* PARAMS LOADED	*/
#define	CDINIT		0x04		/* device has been init'd */
#define	CDWAIT		0x08		/* device has someone waiting */
#define CDHAVELABEL	0x10		/* have read the label */
	struct scsi_switch *sc_sw;	/* address of scsi low level switch */
	int	ctlr;			/* so they know which one we want */
	int	targ;			/* our scsi target ID */
	int	lu;			/* out scsi lu */
	int	cmdscount;		/* cmds allowed outstanding by board*/
	struct  cd_parms {
		int blksize;
		u_long disksize;		/* total number sectors */
	} params;
	struct disklabel	disklabel;
	int	partflags[MAXPARTITIONS];	/* per partition flags */
#define CDOPEN	0x01
	int		openparts;		/* one bit for each open partition */
};

int cdattach(int, struct scsi_switch *, int, int *);
int cdopen(dev_t);
struct scsi_xfer * cd_get_xs(int, int);
void cd_free_xs(int, struct scsi_xfer *, int);
void cdminphys(struct buf *);
int cdstrategy(struct buf *);
void cdstart(int);
int cd_done(int, struct scsi_xfer *);
int cdioctl(dev_t, int, caddr_t, int);
int cdgetdisklabel(int);
int cd_size(int, int);
int cd_req_sense(int, int);
int cd_get_mode(int, struct cd_mode_data *, int);
int cd_set_mode(int, struct cd_mode_data *);
int cd_play(int, int, int);
int cd_play_big(int, int, int);
int cd_play_tracks(int, int, int, int, int);
int cd_pause(int, int);
int cd_reset(int);
int cd_start_unit(int, int, int);
int cd_prevent_unit(int, int, int);
int cd_read_subchannel(int, int, int, int, struct cd_sub_channel_info *, int);
int cd_read_toc(int, int, int, struct cd_toc_entry *, int);
int cd_get_parms(int, int);
int cdclose(dev_t);
int cd_scsi_cmd(int, struct scsi_generic *, int, u_char *, int, int, int);
int cd_interpret_sense(int, struct scsi_xfer *);
int cdsize(dev_t);
int show_mem(unsigned char *, int);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.