blob: cc88aed23f0f879d2fa40aff784def3e9b556279 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Miguel de Icaza
3 */
4#ifndef __ASM_INVENTORY_H
5#define __ASM_INVENTORY_H
6
Ralf Baechle1592dac2005-03-17 21:50:49 +00007#include <linux/compiler.h>
8
Linus Torvalds1da177e2005-04-16 15:20:36 -07009typedef struct inventory_s {
10 struct inventory_s *inv_next;
11 int inv_class;
12 int inv_type;
13 int inv_controller;
14 int inv_unit;
15 int inv_state;
16} inventory_t;
17
18extern int inventory_items;
Ralf Baechle1592dac2005-03-17 21:50:49 +000019
Ralf Baechle49a89ef2007-10-11 23:46:15 +010020extern void add_to_inventory(int class, int type, int controller, int unit, int state);
21extern int dump_inventory_to_user(void __user *userbuf, int size);
Ralf Baechle1592dac2005-03-17 21:50:49 +000022extern int __init init_inventory(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
24#endif /* __ASM_INVENTORY_H */