Alexandru Gagniuc | 67f556c | 2012-08-10 03:55:42 -0500 | [diff] [blame] | 1 | /* |
| 2 | * viatool - dump all registers on a VIA CPU + chipset based system. |
| 3 | * |
| 4 | * Copyright (C) 2013 Alexandru Gagniuc |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License |
| 8 | * as published by the Free Software Foundation; either version 2 |
| 9 | * of the License, or (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. |
Alexandru Gagniuc | 67f556c | 2012-08-10 03:55:42 -0500 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #include <viatool.h> |
| 18 | |
| 19 | struct quirk { |
| 20 | int pci_domain; |
| 21 | int pci_bus; |
| 22 | int pci_dev; |
| 23 | int pci_func; |
| 24 | int pci_vendor_id; |
| 25 | int pci_device_id; |
| 26 | int (*quirk_func)(struct pci_dev *dev); |
| 27 | }; |
| 28 | |
| 29 | struct quirk_list { |
| 30 | int pci_vendor_id; |
| 31 | int pci_device_id; |
| 32 | /* NULL-terminated list of quirks */ |
| 33 | struct quirk *dev_quirks; |
| 34 | }; |