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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [go32/] [sys/] [go32.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* This is file go32.h */
2
/*
3
** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
4
**
5
** This file is distributed under the terms listed in the document
6
** "copying.dj", available from DJ Delorie at the address above.
7
** A copy of "copying.dj" should accompany this file; if not, a copy
8
** should be available from where this file was obtained.  This file
9
** may not be distributed without a verbatim copy of "copying.dj".
10
**
11
** This file is distributed WITHOUT ANY WARRANTY; without even the implied
12
** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
*/
14
 
15
#ifndef _GO32_H_
16
#define _GO32_H_
17
 
18
#include <sys/types.h>
19
 
20
#ifdef __cplusplus
21
extern "C" {
22
#endif
23
 
24
/* This must match go32/proginfo.h */
25
 
26
typedef struct {
27
  u_long size_of_this_structure_in_bytes;
28
  u_long linear_address_of_primary_screen;
29
  u_long linear_address_of_secondary_screen;
30
  u_long linear_address_of_transfer_buffer;
31
  u_long size_of_transfer_buffer; /* >= 4k */
32
  u_long pid;
33
  u_char master_interrupt_controller_base;
34
  u_char slave_interrupt_controller_base;
35
  u_short selector_for_linear_memory;
36
  u_long linear_address_of_stub_info_structure;
37
  u_long linear_address_of_original_psp;
38
  u_short run_mode;
39
  u_short run_mode_info;
40
} Go32_Info_Block;
41
 
42
extern Go32_Info_Block _go32_info_block;
43
 
44
#define _GO32_RUN_MODE_UNDEF    0
45
#define _GO32_RUN_MODE_RAW      1
46
#define _GO32_RUN_MODE_XMS      2
47
#define _GO32_RUN_MODE_VCPI     3
48
#define _GO32_RUN_MODE_DPMI     4
49
 
50
void dosmemget(int offset, int length, void *buffer);
51
void dosmemput(const void *buffer, int length, int offset);
52
void movedata(unsigned source_selector, unsigned source_offset,
53
              unsigned dest_selector, unsigned dest_offset,
54
              size_t length);
55
 
56
/* returns number of times hit since last call. (zero first time) */
57
u_long _go32_was_ctrl_break_hit(void);
58
void   _go32_want_ctrl_break(int yes); /* auto-yes if call above function */
59
 
60
u_short _go32_my_cs(void);
61
u_short _go32_my_ds(void);
62
u_short _go32_my_ss(void);
63
u_short _go32_conventional_mem_selector(void);
64
 
65
#ifdef __cplusplus
66
}
67
#endif
68
 
69
#endif

powered by: WebSVN 2.1.0

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