2005-04-17 02:20:36 +04:00
|
|
|
/*
|
|
|
|
* Miguel de Icaza
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_INVENTORY_H
|
|
|
|
#define __ASM_INVENTORY_H
|
|
|
|
|
2005-03-18 00:50:49 +03:00
|
|
|
#include <linux/compiler.h>
|
|
|
|
|
2005-04-17 02:20:36 +04:00
|
|
|
typedef struct inventory_s {
|
|
|
|
struct inventory_s *inv_next;
|
|
|
|
int inv_class;
|
|
|
|
int inv_type;
|
|
|
|
int inv_controller;
|
|
|
|
int inv_unit;
|
|
|
|
int inv_state;
|
|
|
|
} inventory_t;
|
|
|
|
|
|
|
|
extern int inventory_items;
|
2005-03-18 00:50:49 +03:00
|
|
|
|
2007-10-12 02:46:15 +04:00
|
|
|
extern void add_to_inventory(int class, int type, int controller, int unit, int state);
|
|
|
|
extern int dump_inventory_to_user(void __user *userbuf, int size);
|
2005-03-18 00:50:49 +03:00
|
|
|
extern int __init init_inventory(void);
|
2005-04-17 02:20:36 +04:00
|
|
|
|
|
|
|
#endif /* __ASM_INVENTORY_H */
|