2009-04-13 22:13:45 +02:00
|
|
|
/*
|
|
|
|
mini - a Free Software replacement for the Nintendo/BroadOn IOS.
|
2009-04-13 23:13:51 +02:00
|
|
|
BSD types compatibility layer for the SD host controller driver.
|
2009-04-13 22:13:45 +02:00
|
|
|
|
|
|
|
Copyright (C) 2008, 2009 Sven Peter <svenpeter@gmail.com>
|
|
|
|
|
2009-05-11 07:53:16 +02:00
|
|
|
# This code is licensed to you under the terms of the GNU GPL, version 2;
|
|
|
|
# see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
2009-04-13 22:13:45 +02:00
|
|
|
*/
|
2009-05-11 08:36:36 +02:00
|
|
|
|
2009-04-11 18:20:16 +02:00
|
|
|
#ifndef __BSDTYPES_H__
|
|
|
|
#define __BSDTYPES_H__
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
#include "errno.h"
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
#define MIN(a, b) (((a)>(b))?(b):(a))
|
|
|
|
|
|
|
|
#define wakeup(...)
|
|
|
|
|
|
|
|
#define bzero(mem, size) memset(mem, 0, size)
|
|
|
|
|
2009-04-11 23:42:53 +02:00
|
|
|
#define ISSET(var, mask) (((var) & (mask)) ? 1 : 0)
|
2009-04-11 18:20:16 +02:00
|
|
|
#define SET(var, mask) ((var) |= (mask))
|
2009-04-13 22:13:45 +02:00
|
|
|
|
2009-04-11 18:20:16 +02:00
|
|
|
#endif
|
2009-04-13 22:13:45 +02:00
|
|
|
|