mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-21 06:27:21 +00:00
These xf86_num_platform_devices and xf86_platform_devices fields aren't _X_EXPORTED, so no drivers can use them - and none are trying so. Thus move them to internal / non-sdk header. Not an ABI change. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
46 lines
1.4 KiB
C
46 lines
1.4 KiB
C
/* SPDX-License-Identifier: MIT OR X11
|
|
*
|
|
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
|
|
*/
|
|
#ifndef _XSERVER_XF86_PLATFORM_BUS_PRIV_H
|
|
#define _XSERVER_XF86_PLATFORM_BUS_PRIV_H
|
|
|
|
#include "xf86platformBus.h"
|
|
|
|
#ifdef XSERVER_PLATFORM_BUS
|
|
|
|
extern int xf86_num_platform_devices;
|
|
extern struct xf86_platform_device *xf86_platform_devices;
|
|
|
|
static inline struct OdevAttributes *
|
|
xf86_platform_odev_attributes(int index)
|
|
{
|
|
struct xf86_platform_device *device = &xf86_platform_devices[index];
|
|
return device->attribs;
|
|
}
|
|
|
|
int xf86platformProbe(void);
|
|
int xf86platformProbeDev(DriverPtr drvp);
|
|
int xf86platformAddGPUDevices(DriverPtr drvp);
|
|
void xf86MergeOutputClassOptions(int entityIndex, void **options);
|
|
void xf86PlatformScanPciDev(void);
|
|
const char *xf86PlatformFindHotplugDriver(int dev_index);
|
|
|
|
int xf86_add_platform_device(struct OdevAttributes *attribs, Bool unowned);
|
|
int xf86_remove_platform_device(int dev_index);
|
|
Bool xf86_get_platform_device_unowned(int index);
|
|
|
|
int xf86platformAddDevice(const char *driver_name, int index);
|
|
void xf86platformRemoveDevice(int index);
|
|
|
|
void xf86platformVTProbe(void);
|
|
void xf86platformPrimary(void);
|
|
|
|
#else /* XSERVER_PLATFORM_BUS */
|
|
|
|
static inline int xf86platformAddGPUDevices(DriverPtr drvp) { return FALSE; }
|
|
static inline void xf86MergeOutputClassOptions(int index, void **options) {}
|
|
|
|
#endif /* XSERVER_PLATFORM_BUS */
|
|
|
|
#endif /* _XSERVER_XF86_PLATFORM_BUS_PRIV_H */
|