~ubuntu-branches/ubuntu/oneiric/sg3-utils/oneiric

« back to all changes in this revision

Viewing changes to src/sg_modes.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-11-05 20:42:13 UTC
  • mfrom: (5.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091105204213-ug7wrb6m7l9kmvyg
Tags: 1.28-2
* QA upload.
* Add libsgutils2-2.symbols.kfreebsd. Some of the symbols are Linux
  specific causing FTBFS on kfreebsd.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#include "sg_cmds_basic.h"
14
14
 
15
15
/*
16
 
*  Copyright (C) 2000-2008 D. Gilbert
 
16
*  Copyright (C) 2000-2009 D. Gilbert
17
17
*  This program is free software; you can redistribute it and/or modify
18
18
*  it under the terms of the GNU General Public License as published by
19
19
*  the Free Software Foundation; either version 2, or (at your option)
26
26
 
27
27
*/
28
28
 
29
 
static char * version_str = "1.30 20080805";
 
29
static char * version_str = "1.32 20090826";
30
30
 
31
31
#define DEF_ALLOC_LEN (1024 * 4)
32
32
#define DEF_6_ALLOC_LEN 252
530
530
    {0x10, 0x0, "XOR control"},
531
531
    {0x1a, 0xf1, "ATA Power condition"},
532
532
    {0x1c, 0x1, "Background control"},
 
533
    {0x1c, 0x2, "Thin provisioning"},
533
534
};
534
535
 
535
536
static struct page_code_desc pc_desc_tape[] = {
577
578
    {0x6, 0x0, "RBC device parameters"},
578
579
};
579
580
 
580
 
static struct page_code_desc pc_desc_adt[] = {
 
581
static struct page_code_desc pc_desc_adc[] = {
581
582
    /* {0xe, 0x0, "ADC device configuration"}, */
582
583
    {0xe, 0x1, "Target device"},
583
584
    {0xe, 0x2, "DT device primary port"},
618
619
            *size = sizeof(pc_desc_rbc) / sizeof(pc_desc_rbc[0]);
619
620
            return &pc_desc_rbc[0];
620
621
        case PDT_ADC:       /* automation device/interface */
621
 
            *size = sizeof(pc_desc_adt) / sizeof(pc_desc_adt[0]);
622
 
            return &pc_desc_adt[0];
 
622
            *size = sizeof(pc_desc_adc) / sizeof(pc_desc_adc[0]);
 
623
            return &pc_desc_adc[0];
623
624
    }
624
625
    *size = 0;
625
626
    return NULL;
644
645
    {0x19, 0x0, "Protocol specific port (SAS)"},
645
646
    {0x19, 0x1, "Phy control and discover (SAS)"},
646
647
    {0x19, 0x2, "Shared port control (SAS)"},
647
 
    {0x19, 0x3, "SAS-2 phy"},
 
648
    {0x19, 0x3, "Enhanced phy control (SAS)"},
648
649
};
649
650
 
650
 
static struct page_code_desc pc_desc_t_adt[] = {
 
651
static struct page_code_desc pc_desc_t_adc[] = {
651
652
    {0xe, 0x1, "Target device"},
652
653
    {0xe, 0x2, "DT device primary port"},
653
654
    {0xe, 0x3, "Logical unit"},
670
671
            *size = sizeof(pc_desc_t_sas) / sizeof(pc_desc_t_sas[0]);
671
672
            return &pc_desc_t_sas[0];
672
673
        case TPROTO_ADT:
673
 
            *size = sizeof(pc_desc_t_adt) / sizeof(pc_desc_t_adt[0]);
674
 
            return &pc_desc_t_adt[0];
 
674
            *size = sizeof(pc_desc_t_adc) / sizeof(pc_desc_t_adc[0]);
 
675
            return &pc_desc_t_adc[0];
675
676
    }
676
677
    *size = 0;
677
678
    return NULL;