mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-01 07:42:18 +00:00
7d3018da4c
* NVME, SATA NAND Security added * Qortal Core exception fetcher is now redone. * Update DT overlays for firmware * Fix for bvb clockj settings * Fix for no audio for sissy desktop porn watchers -_- ( thanks crowetic for watching gay porn and reporting me that bug asshat ) * Normalize the fetch() stream while doing a peer to peer handshake for nodes * Fix for RNG token editing error while performing a SHA256 encryption * Now under voltage errors will blink red led constantly for 5 minutes then go solid. * Improve kernel thread scaling for Qortal 2.0 core * HDMI circuit is now enabled at power up instead. * Added KMS * Added line replication instead of interpolation for VC4 GPU resulting in slightly better frame rates * Fix for long and doubles * Backplane clock is now set at standard rate * Capped HVEC clocks * Add support for Creative Cinema webcam for donkers who like sharing dick pics. *looks at crowetic* * More scanline XGA modes for people who have weird ass monitors of all sorts. * TX/RX flow control support is now 100% stable. No lags over 1Gbps ethernet. ( Hello Qortal 3.0 ) * Using flush cache instead of fetch for QC 2.0 resulting in performance gains * VC4 clock is now enforced for desktop oriented images. * Ondemand governor now waits for 2 seconds instead of 0.5ms to scale down to the lowest safest clock freq preventing lags to the core. * Timeout of OC set at 35ms from 90ms resulting in way better clocks and sync for Qortal 2.0 core
87 lines
2.3 KiB
C
87 lines
2.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_X86_XEN_PCI_H
|
|
#define _ASM_X86_XEN_PCI_H
|
|
|
|
#if defined(CONFIG_PCI_XEN)
|
|
extern int __init pci_xen_init(void);
|
|
extern int __init pci_xen_hvm_init(void);
|
|
#define pci_xen 1
|
|
#else
|
|
#define pci_xen 0
|
|
#define pci_xen_init (0)
|
|
static inline int pci_xen_hvm_init(void)
|
|
{
|
|
return -1;
|
|
}
|
|
#endif
|
|
#ifdef CONFIG_XEN_PV_DOM0
|
|
int __init pci_xen_initial_domain(void);
|
|
#else
|
|
static inline int __init pci_xen_initial_domain(void)
|
|
{
|
|
return -1;
|
|
}
|
|
#endif
|
|
#ifdef CONFIG_XEN_DOM0
|
|
int xen_find_device_domain_owner(struct pci_dev *dev);
|
|
int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain);
|
|
int xen_unregister_device_domain_owner(struct pci_dev *dev);
|
|
#else
|
|
static inline int xen_find_device_domain_owner(struct pci_dev *dev)
|
|
{
|
|
return -1;
|
|
}
|
|
static inline int xen_register_device_domain_owner(struct pci_dev *dev,
|
|
uint16_t domain)
|
|
{
|
|
return -1;
|
|
}
|
|
static inline int xen_unregister_device_domain_owner(struct pci_dev *dev)
|
|
{
|
|
return -1;
|
|
}
|
|
#endif
|
|
|
|
#if defined(CONFIG_PCI_MSI)
|
|
#if defined(CONFIG_PCI_XEN)
|
|
/* The drivers/pci/xen-pcifront.c sets this structure to
|
|
* its own functions.
|
|
*/
|
|
struct xen_pci_frontend_ops {
|
|
int (*enable_msi)(struct pci_dev *dev, int vectors[]);
|
|
void (*disable_msi)(struct pci_dev *dev);
|
|
int (*enable_msix)(struct pci_dev *dev, int vectors[], int nvec);
|
|
void (*disable_msix)(struct pci_dev *dev);
|
|
};
|
|
|
|
extern struct xen_pci_frontend_ops *xen_pci_frontend;
|
|
|
|
static inline int xen_pci_frontend_enable_msi(struct pci_dev *dev,
|
|
int vectors[])
|
|
{
|
|
if (xen_pci_frontend && xen_pci_frontend->enable_msi)
|
|
return xen_pci_frontend->enable_msi(dev, vectors);
|
|
return -ENOSYS;
|
|
}
|
|
static inline void xen_pci_frontend_disable_msi(struct pci_dev *dev)
|
|
{
|
|
if (xen_pci_frontend && xen_pci_frontend->disable_msi)
|
|
xen_pci_frontend->disable_msi(dev);
|
|
}
|
|
static inline int xen_pci_frontend_enable_msix(struct pci_dev *dev,
|
|
int vectors[], int nvec)
|
|
{
|
|
if (xen_pci_frontend && xen_pci_frontend->enable_msix)
|
|
return xen_pci_frontend->enable_msix(dev, vectors, nvec);
|
|
return -ENOSYS;
|
|
}
|
|
static inline void xen_pci_frontend_disable_msix(struct pci_dev *dev)
|
|
{
|
|
if (xen_pci_frontend && xen_pci_frontend->disable_msix)
|
|
xen_pci_frontend->disable_msix(dev);
|
|
}
|
|
#endif /* CONFIG_PCI_XEN */
|
|
#endif /* CONFIG_PCI_MSI */
|
|
|
|
#endif /* _ASM_X86_XEN_PCI_H */
|