2012-08-22 23:55:42 -04:00
|
|
|
#ifndef __NOUVEAU_IBUS_H__
|
|
|
|
|
#define __NOUVEAU_IBUS_H__
|
|
|
|
|
|
|
|
|
|
#include <core/subdev.h>
|
|
|
|
|
#include <core/device.h>
|
|
|
|
|
|
|
|
|
|
struct nouveau_ibus {
|
|
|
|
|
struct nouveau_subdev base;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static inline struct nouveau_ibus *
|
|
|
|
|
nouveau_ibus(void *obj)
|
|
|
|
|
{
|
2014-12-03 17:07:22 +10:00
|
|
|
return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_IBUS);
|
2012-08-22 23:55:42 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define nouveau_ibus_create(p,e,o,d) \
|
|
|
|
|
nouveau_subdev_create_((p), (e), (o), 0, "PIBUS", "ibus", \
|
|
|
|
|
sizeof(**d), (void **)d)
|
|
|
|
|
#define nouveau_ibus_destroy(p) \
|
|
|
|
|
nouveau_subdev_destroy(&(p)->base)
|
|
|
|
|
#define nouveau_ibus_init(p) \
|
|
|
|
|
nouveau_subdev_init(&(p)->base)
|
|
|
|
|
#define nouveau_ibus_fini(p,s) \
|
|
|
|
|
nouveau_subdev_fini(&(p)->base, (s))
|
|
|
|
|
|
|
|
|
|
#define _nouveau_ibus_dtor _nouveau_subdev_dtor
|
|
|
|
|
#define _nouveau_ibus_init _nouveau_subdev_init
|
|
|
|
|
#define _nouveau_ibus_fini _nouveau_subdev_fini
|
|
|
|
|
|
2012-09-26 13:05:01 +10:00
|
|
|
extern struct nouveau_oclass nvc0_ibus_oclass;
|
2012-08-22 23:55:42 -04:00
|
|
|
extern struct nouveau_oclass nve0_ibus_oclass;
|
2014-05-02 18:32:36 +09:00
|
|
|
extern struct nouveau_oclass gk20a_ibus_oclass;
|
2012-08-22 23:55:42 -04:00
|
|
|
|
|
|
|
|
#endif
|