source: trunk/libs/newlib/src/libgloss/msp430/cio.h @ 547

Last change on this file since 547 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.2 KB
Line 
1/*
2
3Copyright (c) 2013  Red Hat, Inc. All rights reserved.
4
5This copyrighted material is made available to anyone wishing to use, modify,
6copy, or redistribute it subject to the terms and conditions of the BSD
7License.   This program is distributed in the hope that it will be useful,
8but WITHOUT ANY WARRANTY expressed or implied, including the implied warranties
9of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  A copy of this license
10is available at http://www.opensource.org/licenses. Any Red Hat trademarks that
11are incorporated in the source code or documentation are not subject to the BSD
12License and may only be used or replicated with the express permission of
13Red Hat, Inc.
14
15*/
16
17#ifndef CIO_BUF_SIZE
18#define CIO_BUF_SIZE 64
19#endif
20
21typedef struct {
22  unsigned char length[2];
23  unsigned char parms[9];
24  unsigned char buf[CIO_BUF_SIZE];
25} __CIOBUF__TYPE__;
26
27extern __CIOBUF__TYPE__ __CIOBUF__;
28
29extern void _libgloss_cio_hook (void);
30
31#define CIO_OPEN    (0xF0)
32#define CIO_CLOSE   (0xF1)
33#define CIO_READ    (0xF2)
34#define CIO_WRITE   (0xF3)
35#define CIO_LSEEK   (0xF4)
36#define CIO_UNLINK  (0xF5)
37#define CIO_GETENV  (0xF6)
38#define CIO_RENAME  (0xF7)
39#define CIO_GETTIME (0xF8)
40#define CIO_GETCLK  (0xF9)
41#define CIO_SYNC    (0xFF)
42
Note: See TracBrowser for help on using the repository browser.