~ubuntu-branches/ubuntu/saucy/biosdevname/saucy-proposed

« back to all changes in this revision

Viewing changes to src/dmidecode/dmidecode.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-02-23 17:58:36 UTC
  • Revision ID: james.westby@ubuntu.com-20110223175836-4f0cbcno9zm0lmdu
Tags: upstream-0.3.7
ImportĀ upstreamĀ versionĀ 0.3.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of the dmidecode project.
 
3
 *
 
4
 *   (C) 2005-2007 Jean Delvare <khali@linux-fr.org>
 
5
 *
 
6
 *   This program is free software; you can redistribute it and/or modify
 
7
 *   it under the terms of the GNU General Public License as published by
 
8
 *   the Free Software Foundation; either version 2 of the License, or
 
9
 *   (at your option) any later version.
 
10
 *
 
11
 *   This program is distributed in the hope that it will be useful,
 
12
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *   GNU General Public License for more details.
 
15
 *
 
16
 *   You should have received a copy of the GNU General Public License
 
17
 *   along with this program; if not, write to the Free Software
 
18
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
19
 */
 
20
 
 
21
struct dmi_header
 
22
{
 
23
        u8 type;
 
24
        u8 length;
 
25
        u16 handle;
 
26
        u8 *data;
 
27
};
 
28
 
 
29
const char *dmi_string(struct dmi_header *dm, u8 s);
 
30
 
 
31
struct dmi_embedded_device
 
32
{
 
33
        u8 type;
 
34
        u8 instance;
 
35
        u16 domain;
 
36
        u8 bus;
 
37
        u8 device;
 
38
        u8 function;
 
39
        const char *reference_designation;
 
40
};
 
41
 
 
42
struct dmi_addon_device
 
43
{
 
44
        u8 type;
 
45
        u8 instance;
 
46
        u16 domain;
 
47
        u8 bus;
 
48
        u8 device;
 
49
        u8 function;
 
50
        const char *reference_designation;
 
51
};
 
52
 
 
53
enum dmi_onboard_device_type {
 
54
        DMI_OTHER=1,
 
55
        DMI_UNKNOWN,
 
56
        DMI_VIDEO,
 
57
        DMI_SCSI,
 
58
        DMI_ETHERNET,
 
59
        DMI_TOKEN_RING,
 
60
        DMI_SOUND,
 
61
        DMI_PATA,
 
62
        DMI_SATA,
 
63
        DMI_SAS,
 
64
};
 
65
 
 
66
struct libbiosdevname_state;
 
67
int dmidecode_main(const struct libbiosdevname_state *state);
 
68