2005-04-16 16:20:36 -06:00
|
|
|
/*
|
|
|
|
* Miguel de Icaza
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_INVENTORY_H
|
|
|
|
#define __ASM_INVENTORY_H
|
|
|
|
|
2005-03-17 14:50:49 -07:00
|
|
|
#include <linux/compiler.h>
|
|
|
|
|
2005-04-16 16:20:36 -06: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-17 14:50:49 -07:00
|
|
|
|
2007-10-11 16:46:15 -06: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-17 14:50:49 -07:00
|
|
|
extern int __init init_inventory(void);
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
#endif /* __ASM_INVENTORY_H */
|