mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
nouveau/ws: reorganize a little
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
cd4e67c536
commit
ba7d2ba45e
2 changed files with 16 additions and 15 deletions
|
|
@ -6,23 +6,8 @@
|
|||
#include <nvif/cl0080.h>
|
||||
#include <nvif/class.h>
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "util/os_misc.h"
|
||||
|
||||
struct nouveau_ws_device_priv {
|
||||
struct nouveau_ws_device base;
|
||||
struct nouveau_drm *drm;
|
||||
struct nouveau_device *dev;
|
||||
int fd;
|
||||
};
|
||||
|
||||
static struct nouveau_ws_device_priv *
|
||||
nouveau_ws_device(struct nouveau_ws_device *dev)
|
||||
{
|
||||
return container_of(dev, struct nouveau_ws_device_priv, base);
|
||||
}
|
||||
|
||||
struct nouveau_ws_device *
|
||||
nouveau_ws_device_new(int fd)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include "nouveau_private.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
struct nouveau_ws_device {
|
||||
uint16_t vendor_id;
|
||||
uint16_t device_id;
|
||||
|
|
@ -12,6 +14,20 @@ struct nouveau_ws_device {
|
|||
bool is_integrated;
|
||||
};
|
||||
|
||||
/* don't use directly, gets removed once the new UAPI is here */
|
||||
struct nouveau_ws_device_priv {
|
||||
struct nouveau_ws_device base;
|
||||
struct nouveau_drm *drm;
|
||||
struct nouveau_device *dev;
|
||||
int fd;
|
||||
};
|
||||
|
||||
static struct nouveau_ws_device_priv *
|
||||
nouveau_ws_device(struct nouveau_ws_device *dev)
|
||||
{
|
||||
return container_of(dev, struct nouveau_ws_device_priv, base);
|
||||
}
|
||||
|
||||
struct nouveau_ws_device *nouveau_ws_device_new(int fd);
|
||||
void nouveau_ws_device_destroy(struct nouveau_ws_device *);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue