File: mmapbus.h

package info (click to toggle)
dahdi-linux 1%3A2.3.0.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,640 kB
  • ctags: 14,900
  • sloc: ansic: 107,100; perl: 1,371; sh: 785; makefile: 477
file content (26 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef MMAPBUS_H
#define MMAPBUS_H

#include <linux/device.h>

struct mmap_device {
	char *name;
	struct mmap_driver *driver;
	struct device dev;
};
#define to_mmap_device(x)	container_of(x, struct mmap_device, dev)

struct mmap_driver {
	struct module *module;
	struct device_driver driver;
};
#define to_mmap_driver(x)	container_of(x, struct mmap_driver, driver)

int register_mmap_bus(void);
void unregister_mmap_bus(void);
int register_mmap_device(struct mmap_device *dev);
void unregister_mmap_device(struct mmap_device *dev);
int register_mmap_driver(struct mmap_driver *driver);
void unregister_mmap_driver(struct mmap_driver *driver);

#endif