4 * Copyright (C) 2004 Intel Corporation. All rights reserved.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License v 2.0 as published by the Free Software Foundation;
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 021110-1307, USA.
20 * Authors: Atul Sabharwal
29 #define ERROR_NO_SLOT 2
30 #define ERROR_NO_CHASSIS 3
31 #define ERROR_NO_DEVPATH 4
32 #define ERROR_BAD_SNUMBER 5
33 #define ERROR_NO_DISK 6
34 #define ERROR_BAD_TABLE 7
35 #define ERROR_BAD_SCAN 8
38 extern int table_init(void);
39 extern int table_find_disk(const char *serialnumber , int *chassis_num, int *slot_num);
40 extern int table_select_disk(int diskindex);