pci: Put the public API header in the right location
Instead of drivers/pci/, the public API headers will be found in include/drivers/pci. Change-Id: I577036660383e6bd9c015d6bbbcbc14bf8fb67ec Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
ae09a48a7e
commit
40b1080150
5 changed files with 4 additions and 4 deletions
|
@ -57,8 +57,8 @@ In order to use the driver, BSP has to define:
|
|||
|
||||
#include <board.h>
|
||||
|
||||
#include "pci_mgr.h"
|
||||
#include "pci.h"
|
||||
#include <pci/pci_mgr.h>
|
||||
#include <pci/pci.h>
|
||||
|
||||
/* NOTE. These parameters may need to be configurable */
|
||||
#define LSPCI_MAX_BUS 256 /* maximum number of buses to scan */
|
||||
|
|
|
@ -1,70 +0,0 @@
|
|||
/* pci.h - PCI probe and information routines */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2013-2014 Wind River Systems, Inc.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1) Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2) Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* 3) Neither the name of Wind River Systems nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/*
|
||||
DESCRIPTION
|
||||
Module declares routines of PCI bus initialization and query
|
||||
*/
|
||||
|
||||
#ifndef _PCI_H_
|
||||
#define _PCI_H_
|
||||
|
||||
#undef PCI_DEBUG
|
||||
|
||||
#define BAR_SPACE_MEM 0
|
||||
#define BAR_SPACE_IO 1
|
||||
|
||||
/* PCI device information */
|
||||
|
||||
struct pci_dev_info {
|
||||
uint32_t addr; /* I/O or memory region address */
|
||||
uint32_t size; /* memory region size */
|
||||
int irq;
|
||||
uint16_t mem_type; /* memory type: BAR_SPACE_MEM/BAR_SPACE_IO */
|
||||
uint16_t vendor_id;
|
||||
uint16_t device_id;
|
||||
uint16_t class;
|
||||
};
|
||||
|
||||
extern void pci_bus_scan(uint32_t classMask);
|
||||
extern struct pci_dev_info *pci_info_get(void);
|
||||
extern int pci_dev_find(int class,
|
||||
int idx,
|
||||
uint32_t *addr,
|
||||
uint32_t *size,
|
||||
int *irq);
|
||||
|
||||
#ifdef PCI_DEBUG
|
||||
extern void pci_show(void);
|
||||
#endif /* PCI_DEBUG */
|
||||
|
||||
#endif /* _PCI_H_ */
|
|
@ -42,7 +42,7 @@ This module implements the PCI config space access functions
|
|||
#include <nanokernel.h>
|
||||
#include <nanokernel/cpu.h>
|
||||
|
||||
#include "pci_mgr.h"
|
||||
#include <pci/pci_mgr.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __MSIX_DEBUG__
|
||||
|
|
|
@ -42,7 +42,7 @@ This module implements the PCI H/W access functions.
|
|||
#include <nanokernel.h>
|
||||
#include <nanokernel/cpu.h>
|
||||
|
||||
#include "pci_mgr.h"
|
||||
#include <pci/pci_mgr.h>
|
||||
#include <string.h>
|
||||
#include <board.h>
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue