pcie.h (88e6599669a2f8c9ec5b8baa62178bc3dfc340ae) pcie.h (6383292ac884f01be609f69d888f54c099af622e)
1/*
2 * pcie.h
3 *
4 * Copyright (c) 2010 Isaku Yamahata <yamahata at valinux co jp>
5 * VA Linux Systems Japan K.K.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 66 unchanged lines hidden (view full) ---

75 uint16_t aer_cap;
76 PCIEAERLog aer_log;
77};
78
79#define COMPAT_PROP_PCP "power_controller_present"
80
81/* PCI express capability helper functions */
82int pcie_cap_init(PCIDevice *dev, uint8_t offset, uint8_t type, uint8_t port);
1/*
2 * pcie.h
3 *
4 * Copyright (c) 2010 Isaku Yamahata <yamahata at valinux co jp>
5 * VA Linux Systems Japan K.K.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 66 unchanged lines hidden (view full) ---

75 uint16_t aer_cap;
76 PCIEAERLog aer_log;
77};
78
79#define COMPAT_PROP_PCP "power_controller_present"
80
81/* PCI express capability helper functions */
82int pcie_cap_init(PCIDevice *dev, uint8_t offset, uint8_t type, uint8_t port);
83int pcie_cap_v1_init(PCIDevice *dev, uint8_t offset,
84 uint8_t type, uint8_t port);
83int pcie_endpoint_cap_init(PCIDevice *dev, uint8_t offset);
84void pcie_cap_exit(PCIDevice *dev);
85int pcie_endpoint_cap_init(PCIDevice *dev, uint8_t offset);
86void pcie_cap_exit(PCIDevice *dev);
87int pcie_endpoint_cap_v1_init(PCIDevice *dev, uint8_t offset);
88void pcie_cap_v1_exit(PCIDevice *dev);
85uint8_t pcie_cap_get_type(const PCIDevice *dev);
86void pcie_cap_flags_set_vector(PCIDevice *dev, uint8_t vector);
87uint8_t pcie_cap_flags_get_vector(PCIDevice *dev);
88
89void pcie_cap_deverr_init(PCIDevice *dev);
90void pcie_cap_deverr_reset(PCIDevice *dev);
91
92void pcie_cap_slot_init(PCIDevice *dev, uint16_t slot);

--- 41 unchanged lines hidden ---
89uint8_t pcie_cap_get_type(const PCIDevice *dev);
90void pcie_cap_flags_set_vector(PCIDevice *dev, uint8_t vector);
91uint8_t pcie_cap_flags_get_vector(PCIDevice *dev);
92
93void pcie_cap_deverr_init(PCIDevice *dev);
94void pcie_cap_deverr_reset(PCIDevice *dev);
95
96void pcie_cap_slot_init(PCIDevice *dev, uint16_t slot);

--- 41 unchanged lines hidden ---