1
/* Copyright (c) 1996-2004, Adaptec Corporation
4
* Redistribution and use in source and binary forms, with or without
5
* modification, are permitted provided that the following conditions are met:
7
* - Redistributions of source code must retain the above copyright notice, this
8
* list of conditions and the following disclaimer.
9
* - Redistributions in binary form must reproduce the above copyright notice,
10
* this list of conditions and the following disclaimer in the documentation
11
* and/or other materials provided with the distribution.
12
* - Neither the name of the Adaptec Corporation nor the names of its
13
* contributors may be used to endorse or promote products derived from this
14
* software without specific prior written permission.
16
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26
* POSSIBILITY OF SUCH DAMAGE.
32
/****************************************************************************
36
*****************************************************************************
38
* File Name: ListDev.hpp
40
* Contributors: Lee Page
47
*****************************************************************************/
50
#include "scsiaddr.hpp"
58
class List_Device: public Command
63
LIST_INVALID_DEVICE_TYPE,
77
// Added by Qi Zhu, for disk Maxtor FW showing
83
// list all devices of this type...
84
List_Device( list_Type what );
85
// list devices connected to this device...
86
List_Device( list_Type what, SCSI_Address &address_to_List );
87
List_Device( const List_Device &right );
88
Dpt_Error List_Device_Speeds( String_List& output );
90
virtual ~List_Device();
92
Dpt_Error execute( String_List **output );
93
Command &Clone() const;
96
Dpt_Error List_Log_Devices(
98
get_Devs_Type devs_Type);
100
Dpt_Error List_LSU_Devices(
101
String_List &output);
103
Dpt_Error List_Devices (String_List &output);
105
Dpt_Error List_Tags(String_List &output);
107
Dpt_Error List_Battery_Info(
111
Dpt_Error List_This_Device(
113
DPT_TAG_T this_Objs_Tag,
114
get_Devs_Type devs_Type);
116
Dpt_Error List_This_Devices_Speed(
119
DPT_TAG_T this_Objs_Tag);
120
Dpt_Error GetSpeedFromNvram (DPT_TAG_T this_Objs_Tag);
121
Dpt_Error GetSpeedFromHW (int dev_chan);
123
void Show_Physical(String_List &output,
124
char * obj_Type_Str, int indent, bool show_Capacity,
125
long capacity_in_Mb, DPT_TAG_T this_Objs_Tag, get_Devs_Type devs_Type);
127
Dpt_Error List_Inquiry(String_List &output);
128
void Show_Cache_Mode(DPT_TAG_T obj_Tag, get_Devs_Type devs_Type, String_List &output);
130
void GetSmorBiosSignatures(DPT_TAG_T this_Objs_Tag,
131
String_List &output);
132
Dpt_Error Look_for_Hot_Spares (String_List &output,
134
get_Devs_Type devs_Type);
136
SCSI_Address obj_Root;
142
uSHORT NvramMegaHertz;
147
/*** END OF FILE ***/