Chameleon

Chameleon Svn Source Tree

Root/branches/cparm/i386/modules/include/mach/clock_priv.h

1#ifndef_clock_priv_user_
2#define_clock_priv_user_
3
4/* Module clock_priv */
5
6#include <string.h>
7#include <mach/ndr.h>
8#include <mach/boolean.h>
9#include <mach/kern_return.h>
10#include <mach/notify.h>
11#include <mach/mach_types.h>
12#include <mach/message.h>
13#include <mach/mig_errors.h>
14#include <mach/port.h>
15
16#ifdef AUTOTEST
17#ifndef FUNCTION_PTR_T
18#define FUNCTION_PTR_T
19typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
20typedef struct {
21 char *name;
22 function_ptr_t function;
23} function_table_entry;
24typedef function_table_entry *function_table_t;
25#endif /* FUNCTION_PTR_T */
26#endif /* AUTOTEST */
27
28#ifndefclock_priv_MSG_COUNT
29#defineclock_priv_MSG_COUNT2
30#endif/* clock_priv_MSG_COUNT */
31
32#include <mach/std_types.h>
33#include <mach/mig.h>
34#include <mach/mig.h>
35#include <mach/mach_types.h>
36#include <mach/mach_types.h>
37
38#ifdef __BeforeMigUserHeader
39__BeforeMigUserHeader
40#endif /* __BeforeMigUserHeader */
41
42#include <sys/cdefs.h>
43__BEGIN_DECLS
44
45
46/* Routine clock_set_time */
47#ifdefmig_external
48mig_external
49#else
50extern
51#endif/* mig_external */
52kern_return_t clock_set_time
53(
54clock_ctrl_t clock_ctrl,
55mach_timespec_t new_time
56);
57
58/* Routine clock_set_attributes */
59#ifdefmig_external
60mig_external
61#else
62extern
63#endif/* mig_external */
64kern_return_t clock_set_attributes
65(
66clock_ctrl_t clock_ctrl,
67clock_flavor_t flavor,
68clock_attr_t clock_attr,
69mach_msg_type_number_t clock_attrCnt
70);
71
72__END_DECLS
73
74/********************** Caution **************************/
75/* The following data types should be used to calculate */
76/* maximum message sizes only. The actual message may be */
77/* smaller, and the position of the arguments within the */
78/* message layout may vary from what is presented here. */
79/* For example, if any of the arguments are variable- */
80/* sized, and less than the maximum is sent, the data */
81/* will be packed tight in the actual message to reduce */
82/* the presence of holes. */
83/********************** Caution **************************/
84
85/* typedefs for all requests */
86
87#ifndef __Request__clock_priv_subsystem__defined
88#define __Request__clock_priv_subsystem__defined
89
90#ifdef __MigPackStructs
91#pragma pack(4)
92#endif
93typedef struct {
94mach_msg_header_t Head;
95NDR_record_t NDR;
96mach_timespec_t new_time;
97} __Request__clock_set_time_t;
98#ifdef __MigPackStructs
99#pragma pack()
100#endif
101
102#ifdef __MigPackStructs
103#pragma pack(4)
104#endif
105typedef struct {
106mach_msg_header_t Head;
107NDR_record_t NDR;
108clock_flavor_t flavor;
109mach_msg_type_number_t clock_attrCnt;
110int clock_attr[1];
111} __Request__clock_set_attributes_t;
112#ifdef __MigPackStructs
113#pragma pack()
114#endif
115#endif /* !__Request__clock_priv_subsystem__defined */
116
117/* union of all requests */
118
119#ifndef __RequestUnion__clock_priv_subsystem__defined
120#define __RequestUnion__clock_priv_subsystem__defined
121union __RequestUnion__clock_priv_subsystem {
122__Request__clock_set_time_t Request_clock_set_time;
123__Request__clock_set_attributes_t Request_clock_set_attributes;
124};
125#endif /* !__RequestUnion__clock_priv_subsystem__defined */
126/* typedefs for all replies */
127
128#ifndef __Reply__clock_priv_subsystem__defined
129#define __Reply__clock_priv_subsystem__defined
130
131#ifdef __MigPackStructs
132#pragma pack(4)
133#endif
134typedef struct {
135mach_msg_header_t Head;
136NDR_record_t NDR;
137kern_return_t RetCode;
138} __Reply__clock_set_time_t;
139#ifdef __MigPackStructs
140#pragma pack()
141#endif
142
143#ifdef __MigPackStructs
144#pragma pack(4)
145#endif
146typedef struct {
147mach_msg_header_t Head;
148NDR_record_t NDR;
149kern_return_t RetCode;
150} __Reply__clock_set_attributes_t;
151#ifdef __MigPackStructs
152#pragma pack()
153#endif
154#endif /* !__Reply__clock_priv_subsystem__defined */
155
156/* union of all replies */
157
158#ifndef __ReplyUnion__clock_priv_subsystem__defined
159#define __ReplyUnion__clock_priv_subsystem__defined
160union __ReplyUnion__clock_priv_subsystem {
161__Reply__clock_set_time_t Reply_clock_set_time;
162__Reply__clock_set_attributes_t Reply_clock_set_attributes;
163};
164#endif /* !__RequestUnion__clock_priv_subsystem__defined */
165
166#ifndef subsystem_to_name_map_clock_priv
167#define subsystem_to_name_map_clock_priv \
168 { "clock_set_time", 1200 },\
169 { "clock_set_attributes", 1201 }
170#endif
171
172#ifdef __AfterMigUserHeader
173__AfterMigUserHeader
174#endif /* __AfterMigUserHeader */
175
176#endif /* _clock_priv_user_ */
177

Archive Download this file

Revision: 2182