support for platform devices
[deliverable/linux.git] / drivers / gpu / drm / nouveau / core / include / engine / device.h
CommitLineData
9274f4a9
BS
1#ifndef __NOUVEAU_SUBDEV_DEVICE_H__
2#define __NOUVEAU_SUBDEV_DEVICE_H__
3
4#include <core/device.h>
5
420b9469 6struct platform_device;
9274f4a9 7
420b9469
AC
8enum nv_bus_type {
9 NOUVEAU_BUS_PCI,
10 NOUVEAU_BUS_PLATFORM,
11};
12
13#define nouveau_device_create(p,t,n,s,c,d,u) \
14 nouveau_device_create_((void *)(p), (t), (n), (s), (c), (d), \
15 sizeof(**u), (void **)u)
16
17int nouveau_device_create_(void *, enum nv_bus_type type, u64 name,
18 const char *sname, const char *cfg, const char *dbg,
19 int, void **);
9274f4a9
BS
20
21int nv04_identify(struct nouveau_device *);
22int nv10_identify(struct nouveau_device *);
23int nv20_identify(struct nouveau_device *);
24int nv30_identify(struct nouveau_device *);
25int nv40_identify(struct nouveau_device *);
26int nv50_identify(struct nouveau_device *);
27int nvc0_identify(struct nouveau_device *);
28int nve0_identify(struct nouveau_device *);
3f204647 29int gm100_identify(struct nouveau_device *);
9274f4a9 30
9274f4a9
BS
31struct nouveau_device *nouveau_device_find(u64 name);
32
33#endif
This page took 0.195899 seconds and 5 git commands to generate.