1f08c3bdfSopenharmony_ci/* 2f08c3bdfSopenharmony_ci * Copyright (c) International Business Machines Corp., 2001 3f08c3bdfSopenharmony_ci * Copyright (c) 2013 Oracle and/or its affiliates. All Rights Reserved. 4f08c3bdfSopenharmony_ci * 5f08c3bdfSopenharmony_ci * This program is free software; you can redistribute it and/or modify 6f08c3bdfSopenharmony_ci * it under the terms of the GNU General Public License as published by 7f08c3bdfSopenharmony_ci * the Free Software Foundation; either version 2 of the License, or 8f08c3bdfSopenharmony_ci * (at your option) any later version. 9f08c3bdfSopenharmony_ci * 10f08c3bdfSopenharmony_ci * This program is distributed in the hope that it will be useful, 11f08c3bdfSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 12f08c3bdfSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 13f08c3bdfSopenharmony_ci * the GNU General Public License for more details. 14f08c3bdfSopenharmony_ci * 15f08c3bdfSopenharmony_ci * You should have received a copy of the GNU General Public License 16f08c3bdfSopenharmony_ci * along with this program; if not, write to the Free Software 17f08c3bdfSopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18f08c3bdfSopenharmony_ci */ 19f08c3bdfSopenharmony_ci 20f08c3bdfSopenharmony_ci#define PCI_DEVICE_NAME "ltp_tpci" 21f08c3bdfSopenharmony_ci#define MAX_DEVFN 256 22f08c3bdfSopenharmony_ci#define MAX_BUS 256 23f08c3bdfSopenharmony_ci 24f08c3bdfSopenharmony_cienum PCI_TCASES { 25f08c3bdfSopenharmony_ci PCI_DISABLE = 0, 26f08c3bdfSopenharmony_ci PCI_ENABLE, 27f08c3bdfSopenharmony_ci FIND_BUS, 28f08c3bdfSopenharmony_ci FIND_DEVICE, 29f08c3bdfSopenharmony_ci FIND_CLASS, 30f08c3bdfSopenharmony_ci FIND_SUBSYS, 31f08c3bdfSopenharmony_ci BUS_SCAN, 32f08c3bdfSopenharmony_ci SLOT_SCAN, 33f08c3bdfSopenharmony_ci BUS_ADD_DEVICES, 34f08c3bdfSopenharmony_ci MATCH_DEVICE, 35f08c3bdfSopenharmony_ci REG_DRIVER, 36f08c3bdfSopenharmony_ci UNREG_DRIVER, 37f08c3bdfSopenharmony_ci PCI_RESOURCES, 38f08c3bdfSopenharmony_ci SAVE_STATE, 39f08c3bdfSopenharmony_ci RESTORE_STATE, 40f08c3bdfSopenharmony_ci FIND_CAP, 41f08c3bdfSopenharmony_ci PCI_EXP_CAP_CONFIG, 42f08c3bdfSopenharmony_ci PCI_TCASES_NUM, 43f08c3bdfSopenharmony_ci}; 44