2012-06-23 20:08:56 +02:00
|
|
|
#ifndef __BSDTYPES_H__
|
|
|
|
#define __BSDTYPES_H__
|
|
|
|
|
|
|
|
#include "global.h"
|
2012-09-25 13:48:20 +02:00
|
|
|
|
|
|
|
#define ENXIO 6
|
|
|
|
#define EINVAL 22
|
|
|
|
#define WSAETIMEDOUT 10060L
|
|
|
|
#define ETIMEDOUT WSAETIMEDOUT
|
2012-06-23 20:08:56 +02:00
|
|
|
|
|
|
|
typedef u32 u_int;
|
|
|
|
//typedef u32 u_int32_t;
|
|
|
|
typedef u16 u_int16_t;
|
|
|
|
typedef u8 u_int8_t;
|
|
|
|
typedef u8 u_char;
|
|
|
|
|
|
|
|
typedef u32 bus_space_tag_t;
|
|
|
|
typedef u32 bus_space_handle_t;
|
|
|
|
|
|
|
|
struct device {
|
|
|
|
char dv_xname[255];
|
|
|
|
void *dummy;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define MIN(a, b) (((a)>(b))?(b):(a))
|
|
|
|
|
|
|
|
#define wakeup(...)
|
|
|
|
|
|
|
|
#define bzero(mem, size) memset8(mem, 0, size)
|
|
|
|
|
|
|
|
#define ISSET(var, mask) (((var) & (mask)) ? 1 : 0)
|
|
|
|
#define SET(var, mask) ((var) |= (mask))
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|