We want a supervisor client of NVKM (such as the DRM) to be able to allow sharing of resources (such as memory objects) between clients. To allow this, the supervisor creates all its clients as children of itself, and will use an upcoming ioctl to permit sharing. Currently it's not possible for indirect clients to use subclients. Supporting this will require an additional field in the main ioctl. This isn't important currently, but will need to be fixed for virt. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
20 lines
333 B
C
20 lines
333 B
C
#ifndef __NVIF_IF0000_H__
|
|
#define __NVIF_IF0000_H__
|
|
|
|
struct nvif_client_v0 {
|
|
__u8 version;
|
|
__u8 pad01[7];
|
|
__u64 device;
|
|
char name[32];
|
|
};
|
|
|
|
#define NVIF_CLIENT_V0_DEVLIST 0x00
|
|
|
|
struct nvif_client_devlist_v0 {
|
|
__u8 version;
|
|
__u8 count;
|
|
__u8 pad02[6];
|
|
__u64 device[];
|
|
};
|
|
#endif
|