OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [tags/] [eco32-0.24/] [disk/] [tools/] [fs-NetBSD/] [makefs/] [common.h] - Blame information for rev 211

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 17 hellwig
/*
2
 * common.h -- common types, etc.
3
 */
4
 
5
 
6
#ifndef _COMMON_H_
7
#define _COMMON_H_
8
 
9
 
10
#include <errno.h>
11
#include <err.h>
12
 
13
 
14
#ifdef __linux__
15
 
16
#include <byteswap.h>
17
 
18
#define bswap16(a)      bswap_16(a)
19
#define bswap32(a)      bswap_32(a)
20
#define bswap64(a)      bswap_64(a)
21
 
22
#endif
23
 
24
 
25
typedef unsigned long long uintmax_t;
26
 
27
typedef unsigned long long uint64_t;
28
typedef unsigned int uint32_t;
29
typedef unsigned short uint16_t;
30
typedef unsigned char uint8_t;
31
 
32
 
33
#define MAXPHYS         (64 * 1024)     /* max raw I/O transfer size */
34
#define MAXQUOTAS       2
35
 
36
 
37
#endif /* _COMMON_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.