Skip to content

Commit

Permalink
smc: Update media type comment in src..
Browse files Browse the repository at this point in the history
        Ref: smc3r12 - Table 28
        * 0 - empty,
        * 1 - data,
        * 2 cleaning tape,
        * 3 Cleaning,
        * 4 WORM,
        * 5 Microcode image medium

Signed-off-by: Mark Harvey <markh794@gmail.com>
  • Loading branch information
markh794 committed Jan 6, 2011
1 parent be9f99f commit 66125d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion usr/smc.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,14 @@ static int fill_element_descriptor(struct scsi_cmd *cmd, uint8_t *p, int addr)

/* bit 8 set if Source Storage Element is valid | s->occupied */
p[j] = (s->last_location > 0) ? 0x80 : 0;
/* 0 - empty, 1 - data, 2 cleaning tape */
/* Ref: smc3r12 - Table 28
* 0 - empty,
* 1 - data,
* 2 cleaning tape,
* 3 Cleaning,
* 4 WORM,
* 5 Microcode image medium
*/
p[j++] |= (s->cart_type & 0x0f);

/* Source Storage Element Address */
Expand Down

0 comments on commit 66125d0

Please sign in to comment.