-
-
Notifications
You must be signed in to change notification settings - Fork 608
Expand file tree
/
Copy pathpci-device.hh
More file actions
39 lines (26 loc) · 720 Bytes
/
pci-device.hh
File metadata and controls
39 lines (26 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright (C) 2013 Cloudius Systems, Ltd.
*
* This work is open source software, licensed under the terms of the
* BSD license as described in the LICENSE file in the top-level directory.
*/
#ifndef PCI_DEVICE_H
#define PCI_DEVICE_H
#include <osv/types.h>
#include "pci-function.hh"
namespace pci {
class device: public function {
public:
device(u8 bus, u8 device, u8 func);
virtual ~device();
// Parse configuration space of pci_device
virtual bool parse_pci_config();
u16 get_subsystem_id();
u16 get_subsystem_vid();
virtual void dump_config();
protected:
u16 _subsystem_vid;
u16 _subsystem_id;
};
}
#endif