mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 02:48:21 +00:00
a88b5ba8bd
o Move all files from sparc64/kernel/ to sparc/kernel - rename as appropriate o Update sparc/Makefile to the changes o Update sparc/kernel/Makefile to include the sparc64 files NOTE: This commit changes link order on sparc64! Link order had to change for either of sparc32 and sparc64. And assuming sparc64 see more testing than sparc32 change link order on sparc64 where issues will be caught faster. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
93 lines
3.5 KiB
C
93 lines
3.5 KiB
C
/* pci_sun4v.h: SUN4V specific PCI controller support.
|
|
*
|
|
* Copyright (C) 2006 David S. Miller (davem@davemloft.net)
|
|
*/
|
|
|
|
#ifndef _PCI_SUN4V_H
|
|
#define _PCI_SUN4V_H
|
|
|
|
extern long pci_sun4v_iommu_map(unsigned long devhandle,
|
|
unsigned long tsbid,
|
|
unsigned long num_ttes,
|
|
unsigned long io_attributes,
|
|
unsigned long io_page_list_pa);
|
|
extern unsigned long pci_sun4v_iommu_demap(unsigned long devhandle,
|
|
unsigned long tsbid,
|
|
unsigned long num_ttes);
|
|
extern unsigned long pci_sun4v_iommu_getmap(unsigned long devhandle,
|
|
unsigned long tsbid,
|
|
unsigned long *io_attributes,
|
|
unsigned long *real_address);
|
|
extern unsigned long pci_sun4v_config_get(unsigned long devhandle,
|
|
unsigned long pci_device,
|
|
unsigned long config_offset,
|
|
unsigned long size);
|
|
extern int pci_sun4v_config_put(unsigned long devhandle,
|
|
unsigned long pci_device,
|
|
unsigned long config_offset,
|
|
unsigned long size,
|
|
unsigned long data);
|
|
|
|
extern unsigned long pci_sun4v_msiq_conf(unsigned long devhandle,
|
|
unsigned long msiqid,
|
|
unsigned long msiq_paddr,
|
|
unsigned long num_entries);
|
|
extern unsigned long pci_sun4v_msiq_info(unsigned long devhandle,
|
|
unsigned long msiqid,
|
|
unsigned long *msiq_paddr,
|
|
unsigned long *num_entries);
|
|
extern unsigned long pci_sun4v_msiq_getvalid(unsigned long devhandle,
|
|
unsigned long msiqid,
|
|
unsigned long *valid);
|
|
extern unsigned long pci_sun4v_msiq_setvalid(unsigned long devhandle,
|
|
unsigned long msiqid,
|
|
unsigned long valid);
|
|
extern unsigned long pci_sun4v_msiq_getstate(unsigned long devhandle,
|
|
unsigned long msiqid,
|
|
unsigned long *state);
|
|
extern unsigned long pci_sun4v_msiq_setstate(unsigned long devhandle,
|
|
unsigned long msiqid,
|
|
unsigned long state);
|
|
extern unsigned long pci_sun4v_msiq_gethead(unsigned long devhandle,
|
|
unsigned long msiqid,
|
|
unsigned long *head);
|
|
extern unsigned long pci_sun4v_msiq_sethead(unsigned long devhandle,
|
|
unsigned long msiqid,
|
|
unsigned long head);
|
|
extern unsigned long pci_sun4v_msiq_gettail(unsigned long devhandle,
|
|
unsigned long msiqid,
|
|
unsigned long *head);
|
|
extern unsigned long pci_sun4v_msi_getvalid(unsigned long devhandle,
|
|
unsigned long msinum,
|
|
unsigned long *valid);
|
|
extern unsigned long pci_sun4v_msi_setvalid(unsigned long devhandle,
|
|
unsigned long msinum,
|
|
unsigned long valid);
|
|
extern unsigned long pci_sun4v_msi_getmsiq(unsigned long devhandle,
|
|
unsigned long msinum,
|
|
unsigned long *msiq);
|
|
extern unsigned long pci_sun4v_msi_setmsiq(unsigned long devhandle,
|
|
unsigned long msinum,
|
|
unsigned long msiq,
|
|
unsigned long msitype);
|
|
extern unsigned long pci_sun4v_msi_getstate(unsigned long devhandle,
|
|
unsigned long msinum,
|
|
unsigned long *state);
|
|
extern unsigned long pci_sun4v_msi_setstate(unsigned long devhandle,
|
|
unsigned long msinum,
|
|
unsigned long state);
|
|
extern unsigned long pci_sun4v_msg_getmsiq(unsigned long devhandle,
|
|
unsigned long msinum,
|
|
unsigned long *msiq);
|
|
extern unsigned long pci_sun4v_msg_setmsiq(unsigned long devhandle,
|
|
unsigned long msinum,
|
|
unsigned long msiq);
|
|
extern unsigned long pci_sun4v_msg_getvalid(unsigned long devhandle,
|
|
unsigned long msinum,
|
|
unsigned long *valid);
|
|
extern unsigned long pci_sun4v_msg_setvalid(unsigned long devhandle,
|
|
unsigned long msinum,
|
|
unsigned long valid);
|
|
|
|
#endif /* !(_PCI_SUN4V_H) */
|