Annotation of Net2/scsi/sddefs.h, revision 1.1

1.1     ! root        1: /*
        !             2:  *     sddefs.h,v 1.4 1993/05/20 23:14:22 deraadt Exp
        !             3:  */
        !             4: 
        !             5: struct sd_data {
        !             6:        int flags;
        !             7: #define        SDVALID         0x02            /* PARAMS LOADED        */
        !             8: #define        SDINIT          0x04            /* device has been init'd */
        !             9: #define        SDWAIT          0x08            /* device has someone waiting */
        !            10: #define SDHAVELABEL    0x10            /* have read the label */
        !            11: #define SDDOSPART      0x20            /* Have read host-dependent partition table */
        !            12: #define SDWRITEPROT    0x40            /* Device in readonly mode (S/W)*/
        !            13:        struct scsi_switch *sc_sw;      /* address of scsi low level switch */
        !            14:        struct scsi_xfer *freexfer;     /* chain of free ones */
        !            15:        struct buf sdbuf;
        !            16:        int formatting;                 /* format lock */
        !            17:        int ctlr;                       /* so they know which one we want */
        !            18:        int targ;                       /* our scsi target ID */
        !            19:        int lu;                         /* out scsi lu */
        !            20:        long int ad_info;               /* info about the adapter */
        !            21:        int cmdscount;                  /* cmds allowed outstanding by board*/
        !            22:        int wlabel;                     /* label is writable */
        !            23:        struct  disk_parms {
        !            24:                u_char  heads;          /* Number of heads */
        !            25:                u_short cyls;           /* Number of cylinders */
        !            26:                u_char  sectors;        /* Number of sectors/track */
        !            27:                u_short secsiz;         /* Number of bytes/sector */
        !            28:                u_long  disksize;               /* total number sectors */
        !            29:        } params;
        !            30:        unsigned int sd_start_of_unix;  /* unix vs host-dependent partitions */
        !            31:        struct disklabel disklabel;
        !            32:        struct cpu_disklabel cpudisklabel;
        !            33:        int partflags[MAXPARTITIONS];   /* per partition flags */
        !            34: #define SDOPEN 0x01
        !            35:        int openparts;          /* one bit for each open partition */
        !            36:        int blockwait;
        !            37: };
        !            38: 
        !            39: int sdattach(int, struct scsi_switch *, int, int *);
        !            40: int sdopen(int);
        !            41: struct scsi_xfer *sd_get_xs(int, int);
        !            42: void sd_free_xs(int, struct scsi_xfer *, int);
        !            43: void sdminphys(struct buf *);
        !            44: int sdstrategy(struct buf *);
        !            45: void sdstart(int);
        !            46: int sd_done(int, struct scsi_xfer *);
        !            47: int sdioctl(dev_t, int, caddr_t, int);
        !            48: int sdgetdisklabel(u_char);
        !            49: int sd_size(int, int);
        !            50: int sd_test_unit_ready(int, int);
        !            51: void sd_dump();
        !            52: int sdsize(dev_t);
        !            53: int sd_interpret_sense(int, struct scsi_xfer *);
        !            54: int sd_scsi_cmd(int, struct scsi_generic *, int, u_char *, int, int, int);
        !            55: int sd_close(dev_t);
        !            56: int sd_get_parms(int, int);
        !            57: int sd_reassign_blocks(int, int);
        !            58: int sd_start_unit(int, int);
        !            59: int sd_prevent(int, int, int);

unix.superglobalmegacorp.com

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