1254885Sdumbbell/* 2254885Sdumbbell * Copyright 2008 Red Hat Inc. 3254885Sdumbbell * 4254885Sdumbbell * Permission is hereby granted, free of charge, to any person obtaining a 5254885Sdumbbell * copy of this software and associated documentation files (the "Software"), 6254885Sdumbbell * to deal in the Software without restriction, including without limitation 7254885Sdumbbell * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8254885Sdumbbell * and/or sell copies of the Software, and to permit persons to whom the 9254885Sdumbbell * Software is furnished to do so, subject to the following conditions: 10254885Sdumbbell * 11254885Sdumbbell * The above copyright notice and this permission notice shall be included in 12254885Sdumbbell * all copies or substantial portions of the Software. 13254885Sdumbbell * 14254885Sdumbbell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15254885Sdumbbell * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16254885Sdumbbell * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17254885Sdumbbell * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18254885Sdumbbell * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19254885Sdumbbell * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20254885Sdumbbell * OTHER DEALINGS IN THE SOFTWARE. 21254885Sdumbbell * 22254885Sdumbbell * Author: Dave Airlie 23254885Sdumbbell */ 24254885Sdumbbell 25254885Sdumbbell#ifndef ATOM_TYPES_H 26254885Sdumbbell#define ATOM_TYPES_H 27254885Sdumbbell 28254885Sdumbbell#include <sys/cdefs.h> 29254885Sdumbbell__FBSDID("$FreeBSD$"); 30254885Sdumbbell 31254885Sdumbbell/* sync atom types to kernel types */ 32254885Sdumbbell 33254885Sdumbbelltypedef uint16_t USHORT; 34254885Sdumbbelltypedef uint32_t ULONG; 35254885Sdumbbelltypedef uint8_t UCHAR; 36254885Sdumbbell 37254885Sdumbbell 38254885Sdumbbell#ifndef ATOM_BIG_ENDIAN 39254885Sdumbbell#if defined(__BIG_ENDIAN) 40254885Sdumbbell#define ATOM_BIG_ENDIAN 1 41254885Sdumbbell#else 42254885Sdumbbell#define ATOM_BIG_ENDIAN 0 43254885Sdumbbell#endif 44254885Sdumbbell#endif 45254885Sdumbbell#endif 46