~pieq/checkbox/fix-1576570-stress-test-progress-log

« back to all changes in this revision

Viewing changes to checkbox-support/checkbox_support/lib/pci.py

  • Committer: Sylvain Pineau
  • Date: 2014-01-07 13:39:38 UTC
  • mto: This revision was merged to the branch mainline in revision 2588.
  • Revision ID: sylvain.pineau@canonical.com-20140107133938-46v5ehofwa9whl1e
checkbox-support: Copy required modules from checkbox-old/checkbox

and their corresponding tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# This file is part of Checkbox.
 
3
#
 
4
# Copyright 2008 Canonical Ltd.
 
5
#
 
6
# Checkbox is free software: you can redistribute it and/or modify
 
7
# it under the terms of the GNU General Public License version 3,
 
8
# as published by the Free Software Foundation.
 
9
 
 
10
#
 
11
# Checkbox 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 Checkbox.  If not, see <http://www.gnu.org/licenses/>.
 
18
#
 
19
 
 
20
# See http://pciids.sourceforge.net/pci.ids.bz2
 
21
class Pci:
 
22
 
 
23
    BASE_CLASS_STORAGE              = 1
 
24
    CLASS_STORAGE_SCSI              = 0
 
25
    CLASS_STORAGE_IDE               = 1
 
26
    CLASS_STORAGE_FLOPPY            = 2
 
27
    CLASS_STORAGE_IPI               = 3
 
28
    CLASS_STORAGE_RAID              = 4
 
29
    CLASS_STORAGE_OTHER             = 80
 
30
 
 
31
    BASE_CLASS_NETWORK              = 2
 
32
    CLASS_NETWORK_ETHERNET          = 0
 
33
    CLASS_NETWORK_TOKEN_RING        = 1
 
34
    CLASS_NETWORK_FDDI              = 2
 
35
    CLASS_NETWORK_ATM               = 3
 
36
    CLASS_NETWORK_OTHER             = 80
 
37
    CLASS_NETWORK_WIRELESS          = 128
 
38
 
 
39
    BASE_CLASS_DISPLAY              = 3
 
40
    CLASS_DISPLAY_VGA               = 0
 
41
    CLASS_DISPLAY_XGA               = 1
 
42
    CLASS_DISPLAY_3D                = 2
 
43
    CLASS_DISPLAY_OTHER             = 80
 
44
 
 
45
    BASE_CLASS_MULTIMEDIA           = 4
 
46
    CLASS_MULTIMEDIA_VIDEO          = 0
 
47
    CLASS_MULTIMEDIA_AUDIO          = 1
 
48
    CLASS_MULTIMEDIA_PHONE          = 2
 
49
    CLASS_MULTIMEDIA_AUDIO_DEVICE   = 3
 
50
    CLASS_MULTIMEDIA_OTHER          = 80
 
51
 
 
52
    BASE_CLASS_BRIDGE               = 6
 
53
    CLASS_BRIDGE_HOST               = 0
 
54
    CLASS_BRIDGE_ISA                = 1
 
55
    CLASS_BRIDGE_EISA               = 2
 
56
    CLASS_BRIDGE_MC                 = 3
 
57
    CLASS_BRIDGE_PCI                = 4
 
58
    CLASS_BRIDGE_PCMCIA             = 5
 
59
    CLASS_BRIDGE_NUBUS              = 6
 
60
    CLASS_BRIDGE_CARDBUS            = 7
 
61
    CLASS_BRIDGE_RACEWAY            = 8
 
62
    CLASS_BRIDGE_OTHER              = 80
 
63
 
 
64
    BASE_CLASS_COMMUNICATION        = 7
 
65
    CLASS_COMMUNICATION_SERIAL      = 0
 
66
    CLASS_COMMUNICATION_PARALLEL    = 1
 
67
    CLASS_COMMUNICATION_MULTISERIAL = 2
 
68
    CLASS_COMMUNICATION_MODEM       = 3
 
69
    CLASS_COMMUNICATION_OTHER       = 80
 
70
 
 
71
    BASE_CLASS_INPUT                = 9
 
72
    CLASS_INPUT_KEYBOARD            = 0
 
73
    CLASS_INPUT_PEN                 = 1
 
74
    CLASS_INPUT_MOUSE               = 2
 
75
    CLASS_INPUT_SCANNER             = 3
 
76
    CLASS_INPUT_GAMEPORT            = 4
 
77
    CLASS_INPUT_OTHER               = 80
 
78
 
 
79
    BASE_CLASS_SERIAL               = 12
 
80
    CLASS_SERIAL_FIREWIRE           = 0
 
81
    CLASS_SERIAL_ACCESS             = 1
 
82
 
 
83
    BASE_CLASS_WIRELESS             = 13
 
84
    CLASS_WIRELESS_BLUETOOTH        = 17
 
85
 
 
86
    CLASS_SERIAL_SSA                = 2
 
87
    CLASS_SERIAL_USB                = 3
 
88
    CLASS_SERIAL_FIBER              = 4
 
89
    CLASS_SERIAL_SMBUS              = 5