blob: 43934ed659020ce54597cb18f2fa921cfc3d5875 (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
/*
* pir_types.h - data structure definitions for Xen HVM $PIR support
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Copyright (C) Citrix Systems, 2011
*
* See the PCI Interrupt Routing spec for more detail:
* http://www.microsoft.com/taiwan/whdc/archive/pciirq.mspx
*/
#ifndef PIR_TYPES_H
#define PIR_TYPES_H
#include <stdint.h>
#define NR_PIR_SLOTS 6
struct pir_slot {
uint8_t bus;
uint8_t dev;
uint8_t link_a;
uint16_t bitmap_a;
uint8_t link_b;
uint16_t bitmap_b;
uint8_t link_c;
uint16_t bitmap_c;
uint8_t link_d;
uint16_t bitmap_d;
uint8_t slot;
uint8_t reserved;
} __attribute__ ((packed));
struct pir_table {
char signature[4];
uint16_t version;
uint16_t length;
uint8_t router_bus;
uint8_t router_devfn;
uint16_t pci_irqs;
uint16_t router_vid;
uint16_t router_did;
uint32_t miniport_data;
uint8_t reserved[11];
uint8_t checksum;
struct pir_slot slots[0];
} __attribute__ ((packed));
#endif
/*
* Local variables:
* mode: C
* c-set-style: "BSD"
* c-basic-offset: 4
* tab-width: 4
* indent-tabs-mode: nil
* End:
*/
|