Subversion Repositories Kolibri OS

Rev

Rev 6934 | Rev 7143 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6934 Rev 6936
Line 988... Line 988...
988
static inline int pci_is_managed(struct pci_dev *pdev)
988
static inline int pci_is_managed(struct pci_dev *pdev)
989
{
989
{
990
	return pdev->is_managed;
990
	return pdev->is_managed;
991
}
991
}
Line 992... Line -...
992
 
-
 
993
static inline void pci_set_managed_irq(struct pci_dev *pdev, unsigned int irq)
-
 
994
{
-
 
995
	pdev->irq = irq;
-
 
996
	pdev->irq_managed = 1;
-
 
997
}
-
 
998
 
-
 
999
static inline void pci_reset_managed_irq(struct pci_dev *pdev)
-
 
1000
{
-
 
1001
	pdev->irq = 0;
-
 
1002
	pdev->irq_managed = 0;
-
 
1003
}
-
 
1004
 
-
 
1005
static inline bool pci_has_managed_irq(struct pci_dev *pdev)
-
 
1006
{
-
 
1007
	return pdev->irq_managed && pdev->irq > 0;
-
 
1008
}
-
 
1009
 
992
 
Line 1010... Line 993...
1010
void pci_disable_device(struct pci_dev *dev);
993
void pci_disable_device(struct pci_dev *dev);
1011
 
994
 
1012
extern unsigned int pcibios_max_latency;
995
extern unsigned int pcibios_max_latency;
Line 1265... Line 1248...
1265
struct msix_entry {
1248
struct msix_entry {
1266
	u32	vector;	/* kernel uses to write allocated vector */
1249
	u32	vector;	/* kernel uses to write allocated vector */
1267
	u16	entry;	/* driver uses to specify entry, OS writes */
1250
	u16	entry;	/* driver uses to specify entry, OS writes */
1268
};
1251
};
Line 1269... Line -...
1269
 
-
 
1270
void pci_msi_setup_pci_dev(struct pci_dev *dev);
-
 
1271
 
1252
 
1272
#ifdef CONFIG_PCI_MSI
1253
#ifdef CONFIG_PCI_MSI
1273
int pci_msi_vec_count(struct pci_dev *dev);
1254
int pci_msi_vec_count(struct pci_dev *dev);
1274
void pci_msi_shutdown(struct pci_dev *dev);
1255
void pci_msi_shutdown(struct pci_dev *dev);
1275
void pci_disable_msi(struct pci_dev *dev);
1256
void pci_disable_msi(struct pci_dev *dev);
Line 1954... Line 1935...
1954
pci_device_to_OF_node(const struct pci_dev *pdev) { return NULL; }
1935
pci_device_to_OF_node(const struct pci_dev *pdev) { return NULL; }
1955
static inline struct irq_domain *
1936
static inline struct irq_domain *
1956
pci_host_bridge_of_msi_domain(struct pci_bus *bus) { return NULL; }
1937
pci_host_bridge_of_msi_domain(struct pci_bus *bus) { return NULL; }
1957
#endif  /* CONFIG_OF */
1938
#endif  /* CONFIG_OF */
Line -... Line 1939...
-
 
1939
 
-
 
1940
#ifdef CONFIG_ACPI
-
 
1941
struct irq_domain *pci_host_bridge_acpi_msi_domain(struct pci_bus *bus);
-
 
1942
 
-
 
1943
void
-
 
1944
pci_msi_register_fwnode_provider(struct fwnode_handle *(*fn)(struct device *));
-
 
1945
#else
-
 
1946
static inline struct irq_domain *
-
 
1947
pci_host_bridge_acpi_msi_domain(struct pci_bus *bus) { return NULL; }
-
 
1948
#endif
1958
 
1949
 
1959
#ifdef CONFIG_EEH
1950
#ifdef CONFIG_EEH
1960
static inline struct eeh_dev *pci_dev_to_eeh_dev(struct pci_dev *pdev)
1951
static inline struct eeh_dev *pci_dev_to_eeh_dev(struct pci_dev *pdev)
1961
{
1952
{
1962
	return pdev->dev.archdata.edev;
1953
	return pdev->dev.archdata.edev;
Line 2001... Line 1992...
2001
int enum_pci_devices(void);
1992
int enum_pci_devices(void);
Line 2002... Line 1993...
2002
 
1993
 
2003
const struct pci_device_id*
1994
const struct pci_device_id*
Line -... Line 1995...
-
 
1995
find_pci_device(pci_dev_t* pdev, const struct pci_device_id *idlist);
-
 
1996
 
2004
find_pci_device(pci_dev_t* pdev, const struct pci_device_id *idlist);
1997
struct pci_dev * _pci_get_bus_and_slot(unsigned int bus, unsigned int devfn);