diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-04 22:25:03 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-04 22:25:03 +0000 |
commit | 55d4f54ef204271e27703b5e7a89d58c13c2b294 (patch) | |
tree | 6c93fd2fd198db318cd4a014622e1273b1ede69d /nuttx/include | |
parent | 4215984218b33387d048353b23140f4bec0dfae2 (diff) | |
download | px4-nuttx-55d4f54ef204271e27703b5e7a89d58c13c2b294.tar.gz px4-nuttx-55d4f54ef204271e27703b5e7a89d58c13c2b294.tar.bz2 px4-nuttx-55d4f54ef204271e27703b5e7a89d58c13c2b294.zip |
First cut at x86 build environment
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3336 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/ioctl.h | 18 | ||||
-rw-r--r-- | nuttx/include/sys/types.h | 2 |
2 files changed, 19 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/ioctl.h b/nuttx/include/nuttx/ioctl.h index b39470200..c3b83cf04 100644 --- a/nuttx/include/nuttx/ioctl.h +++ b/nuttx/include/nuttx/ioctl.h @@ -51,6 +51,8 @@ * defined below: */ +#define _TIOCBASE (0x5400) /* Terminal I/O ioctl commands */ +#define _WDIOCBASE (0x5400) /* Watchdog driver ioctl commands */ #define _FIOCBASE (0x8700) /* File system ioctl commands */ #define _DIOCBASE (0x8800) /* Character driver ioctl commands */ #define _BIOCBASE (0x8900) /* Block driver ioctl commands */ @@ -66,6 +68,22 @@ #define _IOC(type,nr) ((type)|(nr)) +/* Terminal I/O ioctl commands */ + +#define _TIOCVALID(c) (_IOC_TYPE(c)==_TIOCBASE) +#define _TIOC(nr) _IOC(_TIOCBASE,nr) + +#define TIOCSBRK _TIOC(0x0001) /* BSD compatibility */ +#define TIOCCBRK _TIOC(0x0002) /* " " " " */ +#define TIOCSERGSTRUCT _TIOC(0x0003) /* Get up_dev_t for port */ + +/* Watchdog driver ioctl commands */ + +#define _WDIOCVALID(c) (_IOC_TYPE(c)==_WDIOCBASE) +#define _WDIOC(nr) _IOC(_WDIOCBASE,nr) + +#define WDIOC_KEEPALIVE _WDIOC(0x0001) /* Restart the watchdog timer */ + /* NuttX file system ioctl definitions */ #define _FIOCVALID(c) (_IOC_TYPE(c)==_FIOCBASE) diff --git a/nuttx/include/sys/types.h b/nuttx/include/sys/types.h index 205beefff..4be7d3527 100644 --- a/nuttx/include/sys/types.h +++ b/nuttx/include/sys/types.h @@ -1,7 +1,7 @@ /**************************************************************************** * include/sys/types.h * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without |