types.h revision 231136
1264391Snwhitehorn/*- 2264391Snwhitehorn * BSD LICENSE 3264925Simp * 4264391Snwhitehorn * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 5264391Snwhitehorn * All rights reserved. 6264391Snwhitehorn * 7264391Snwhitehorn * Redistribution and use in source and binary forms, with or without 8264391Snwhitehorn * modification, are permitted provided that the following conditions 9264391Snwhitehorn * are met: 10264391Snwhitehorn * 11264391Snwhitehorn * * Redistributions of source code must retain the above copyright 12264391Snwhitehorn * notice, this list of conditions and the following disclaimer. 13264391Snwhitehorn * * Redistributions in binary form must reproduce the above copyright 14264391Snwhitehorn * notice, this list of conditions and the following disclaimer in 15264391Snwhitehorn * the documentation and/or other materials provided with the 16264391Snwhitehorn * distribution. 17264391Snwhitehorn * 18264391Snwhitehorn * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19280950Sandrew * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20281524Sandrew * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21264391Snwhitehorn * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22264391Snwhitehorn * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23264391Snwhitehorn * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24264403Snwhitehorn * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25281524Sandrew * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26281237Semaste * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27281237Semaste * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28264391Snwhitehorn * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29264391Snwhitehorn * 30264975Snwhitehorn * $FreeBSD: head/sys/dev/isci/types.h 231136 2012-02-07 17:43:58Z jimharris $ 31264391Snwhitehorn */ 32264391Snwhitehorn#ifndef _DRIVER_INCLUDE_TYPES_H_ 33281524Sandrew#define _DRIVER_INCLUDE_TYPES_H_ 34281027Sandrew 35264391Snwhitehorn#include <dev/isci/environment.h> 36282474Sandrew 37282474Sandrewtypedef uintptr_t POINTER_UINT; 38282474Sandrew 39281027Sandrew#ifndef NULL 40281300Sandrew#define NULL ((void *)0) 41281027Sandrew#endif 42281027Sandrew 43281027Sandrew#ifndef FALSE 44281238Semaste#define FALSE 0 45281156Sandrew#endif 46281238Semaste 47281238Semaste#ifndef TRUE 48281156Sandrew#define TRUE (!FALSE) 49281156Sandrew#endif 50281156Sandrew 51281156Sandrewtypedef uint32_t BOOL; 52281156Sandrew 53264391Snwhitehorn#endif /* _DRIVER_INCLUDE_TYPES_H_ */ 54264391Snwhitehorn