mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 02:40:08 +00:00
pc_nic_drv: implement pcie utility dummies
This commit is contained in:
parent
3f80249204
commit
eb2843de33
@ -151,13 +151,36 @@ int pci_read_config_word(const struct pci_dev *dev, int where, u16 *val)
|
||||
};
|
||||
|
||||
printk("%s: unexpected read at %x\n", __func__, where);
|
||||
return -1;
|
||||
PCI_SET_ERROR_RESPONSE(val);;
|
||||
return PCIBIOS_FUNC_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
int pcie_capability_read_word(struct pci_dev *dev, int pos, u16 *val)
|
||||
{
|
||||
printk("%s: unexpected read at %x\n", __func__, pos);
|
||||
return -1;
|
||||
printk("%s: unsupported pos=%x\n", __func__, pos);
|
||||
PCI_SET_ERROR_RESPONSE(val);;
|
||||
return PCIBIOS_FUNC_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
int pcie_capability_write_word(struct pci_dev * dev, int pos, u16 val)
|
||||
{
|
||||
printk("%s: unsupported pos=%x\n", __func__, pos);
|
||||
return PCIBIOS_FUNC_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
int pcie_capability_clear_and_set_word(struct pci_dev *dev, int pos, u16 clear, u16 set)
|
||||
{
|
||||
printk("%s: unsupported pos=%x\n", __func__, pos);
|
||||
return PCIBIOS_FUNC_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
int pcie_set_readrq(struct pci_dev * dev, int rq)
|
||||
{
|
||||
printk("%s: unsupported rq=%d\n", __func__, rq);
|
||||
return pcibios_err_to_errno(PCIBIOS_FUNC_NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
|
||||
|
@ -656,30 +656,6 @@ int pci_write_config_byte(const struct pci_dev * dev,int where,u8 val)
|
||||
}
|
||||
|
||||
|
||||
#include <linux/pci.h>
|
||||
|
||||
int pcie_capability_clear_and_set_word(struct pci_dev * dev,int pos,u16 clear,u16 set)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/pci.h>
|
||||
|
||||
int pcie_capability_write_word(struct pci_dev * dev,int pos,u16 val)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/pci.h>
|
||||
|
||||
int pcie_set_readrq(struct pci_dev * dev,int rq)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/pci.h>
|
||||
|
||||
int pcix_get_mmrbc(struct pci_dev * dev)
|
||||
|
@ -659,30 +659,6 @@ int pci_write_config_byte(const struct pci_dev * dev,int where,u8 val)
|
||||
}
|
||||
|
||||
|
||||
#include <linux/pci.h>
|
||||
|
||||
int pcie_capability_clear_and_set_word(struct pci_dev * dev,int pos,u16 clear,u16 set)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/pci.h>
|
||||
|
||||
int pcie_capability_write_word(struct pci_dev * dev,int pos,u16 val)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/pci.h>
|
||||
|
||||
int pcie_set_readrq(struct pci_dev * dev,int rq)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/pci.h>
|
||||
|
||||
int pcix_get_mmrbc(struct pci_dev * dev)
|
||||
|
Loading…
Reference in New Issue
Block a user