libpayload: Implement pci_cleanup()
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6416 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
d08996e81f
commit
fb2d29ec75
|
@ -70,6 +70,7 @@ int pci_write_long(struct pci_dev *dev, int pos, u32 data);
|
|||
|
||||
struct pci_access *pci_alloc(void);
|
||||
void pci_init(struct pci_access*);
|
||||
void pci_cleanup(struct pci_access*);
|
||||
char *pci_filter_parse_slot(struct pci_filter*, const char*);
|
||||
int pci_filter_match(struct pci_filter*, struct pci_dev*);
|
||||
void pci_filter_init(struct pci_access*, struct pci_filter*);
|
||||
|
|
|
@ -77,11 +77,15 @@ struct pci_access *pci_alloc(void)
|
|||
return pacc;
|
||||
}
|
||||
|
||||
void pci_init(struct pci_access* pacc)
|
||||
void pci_init(struct pci_access *pacc)
|
||||
{
|
||||
memset(pacc, 0, sizeof(*pacc));
|
||||
}
|
||||
|
||||
void pci_cleanup(__attribute__ ((unused)) struct pci_access *pacc)
|
||||
{
|
||||
}
|
||||
|
||||
void pci_filter_init(struct pci_access* pacc, struct pci_filter* pf)
|
||||
{
|
||||
pf->domain = -1;
|
||||
|
|
Loading…
Reference in New Issue