Tomato 1.28
[tomato.git] / release / src / include / osl.h
blobbbf6bee1426c6f6e8bc171d02e566d5c9798aa37
1 /*
2 * OS Independent Layer
3 *
4 * Copyright 2005, Broadcom Corporation
5 * All Rights Reserved.
6 *
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
11 * $Id: osl.h,v 1.1.1.10 2005/03/07 07:31:12 kanki Exp $
14 #ifndef _osl_h_
15 #define _osl_h_
17 #if defined(linux)
18 #include <linux_osl.h>
19 #elif defined(NDIS)
20 #include <ndis_osl.h>
21 #elif defined(_CFE_)
22 #include <cfe_osl.h>
23 #elif defined(_HNDRTE_)
24 #include <hndrte_osl.h>
25 #elif defined(_MINOSL_)
26 #include <min_osl.h>
27 #elif PMON
28 #include <pmon_osl.h>
29 #elif defined(MACOSX)
30 #include <macosx_osl.h>
31 #else
32 #error "Unsupported OSL requested"
33 #endif
35 /* handy */
36 #define SET_REG(r, mask, val) W_REG((r), ((R_REG(r) & ~(mask)) | (val)))
37 #define MAXPRIO 7 /* 0-7 */
39 #endif /* _osl_h_ */