VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/Support/SUPDRVIOC.h@ 3840

Last change on this file since 3840 was 3672, checked in by vboxsync, 17 years ago

RT_OS_* and RT_ARCH_* for Runtime/ and Support/

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 17.4 KB
Line 
1/* $Revision: 3672 $ */
2/** @file
3 * VirtualBox Support Driver - IOCtl definitions.
4 */
5
6/*
7 * Copyright (C) 2006-2007 innotek GmbH
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License as published by the Free Software Foundation,
13 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14 * distribution. VirtualBox OSE is distributed in the hope that it will
15 * be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * If you received this file as part of a commercial VirtualBox
18 * distribution, then only the terms of your commercial VirtualBox
19 * license agreement apply instead of the previous paragraph.
20 */
21
22#ifndef __SUPDRVIOC_h__
23#define __SUPDRVIOC_h__
24
25/*
26 * Basic types.
27 */
28#include <iprt/stdint.h>
29
30/*
31 * IOCtl numbers.
32 * We're using the Win32 type of numbers here, thus the macros below.
33 * The SUP_IOCTL_FLAG macro is used to separate requests from 32-bit
34 * and 64-bit processes.
35 */
36#ifdef RT_ARCH_AMD64
37# define SUP_IOCTL_FLAG 128
38#elif defined(RT_ARCH_X86)
39# define SUP_IOCTL_FLAG 0
40#else
41# error "dunno which arch this is!"
42#endif
43
44#ifdef RT_OS_WINDOWS
45# define SUP_CTL_CODE(Function) CTL_CODE(FILE_DEVICE_UNKNOWN, (Function) | SUP_IOCTL_FLAG, METHOD_BUFFERED, FILE_WRITE_ACCESS)
46# define SUP_CTL_CODE_FAST(Function) CTL_CODE(FILE_DEVICE_UNKNOWN, (Function) | SUP_IOCTL_FLAG, METHOD_NEITHER, FILE_WRITE_ACCESS)
47
48/** @todo get rid of this duplication of window header #defines! */
49# ifndef CTL_CODE
50# define CTL_CODE(DeviceType, Function, Method, Access) \
51 ( ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) )
52# endif
53# ifndef METHOD_BUFFERED
54# define METHOD_BUFFERED 0
55# endif
56# ifndef METHOD_NEITHER
57# define METHOD_NEITHER 3
58# endif
59# ifndef FILE_WRITE_ACCESS
60# define FILE_WRITE_ACCESS 0x0002
61# endif
62# ifndef FILE_DEVICE_UNKNOWN
63# define FILE_DEVICE_UNKNOWN 0x00000022
64# endif
65
66#elif defined(RT_OS_OS2)
67# define SUP_CTL_CATEGORY 0xc0
68# define SUP_CTL_CODE(Function) ((unsigned char)(Function))
69# define SUP_CTL_CATEGORY_FAST 0xc1
70# define SUP_CTL_CODE_FAST(Function) ((unsigned char)(Function))
71
72#elif defined(RT_OS_LINUX)
73# ifdef RT_ARCH_X86 /** @todo With the next major version change, drop this branch. */
74# define SUP_CTL_CODE(Function) \
75 ( (3U << 30) | ((0x22) << 8) | ((Function) | SUP_IOCTL_FLAG) | (sizeof(SUPDRVIOCTLDATA) << 16) )
76# define SUP_CTL_CODE_FAST(Function) \
77 ( (3U << 30) | ((0x22) << 8) | ((Function) | SUP_IOCTL_FLAG) | (0 << 16) )
78# else
79# include <linux/ioctl.h>
80# if 1 /* figure out when this changed. */
81# define SUP_CTL_CODE(Function) _IOWR('V', (Function) | SUP_IOCTL_FLAG, SUPDRVIOCTLDATA)
82# define SUP_CTL_CODE_FAST(Function) _IO( 'V', (Function) | SUP_IOCTL_FLAG)
83# else /* now: _IO_BAD and _IOWR_BAD */
84# define SUP_CTL_CODE(Function) _IOWR('V', (Function) | SUP_IOCTL_FLAG, sizeof(SUPDRVIOCTLDATA))
85# define SUP_CTL_CODE_FAST(Function) _IO( 'V', (Function) | SUP_IOCTL_FLAG)
86# endif
87# endif
88
89#elif defined(RT_OS_L4)
90# define SUP_CTL_CODE(Function) \
91 ( (3U << 30) | ((0x22) << 8) | ((Function) | SUP_IOCTL_FLAG) | (sizeof(SUPDRVIOCTLDATA) << 16) )
92# define SUP_CTL_CODE_FAST(Function) \
93 ( (3U << 30) | ((0x22) << 8) | ((Function) | SUP_IOCTL_FLAG) | (0 << 16) )
94
95#else /* BSD */
96# include <sys/ioccom.h>
97# define SUP_CTL_CODE(Function) _IOWR('V', (Function) | SUP_IOCTL_FLAG, SUPDRVIOCTLDATA)
98# define SUP_CTL_CODE_FAST(Function) _IO( 'V', (Function) | SUP_IOCTL_FLAG)
99#endif
100
101
102/** Negotiate cookie. */
103#define SUP_IOCTL_COOKIE SUP_CTL_CODE( 1)
104/** Query SUPR0 functions. */
105#define SUP_IOCTL_QUERY_FUNCS SUP_CTL_CODE( 2)
106/** Install IDT patch for calling processor. */
107#define SUP_IOCTL_IDT_INSTALL SUP_CTL_CODE( 3)
108/** Remove IDT patch for calling processor. */
109#define SUP_IOCTL_IDT_REMOVE SUP_CTL_CODE( 4)
110/** Pin down physical pages. */
111#define SUP_IOCTL_PINPAGES SUP_CTL_CODE( 5)
112/** Unpin physical pages. */
113#define SUP_IOCTL_UNPINPAGES SUP_CTL_CODE( 6)
114/** Allocate contious memory. */
115#define SUP_IOCTL_CONT_ALLOC SUP_CTL_CODE( 7)
116/** Free contious memory. */
117#define SUP_IOCTL_CONT_FREE SUP_CTL_CODE( 8)
118/** Open an image. */
119#define SUP_IOCTL_LDR_OPEN SUP_CTL_CODE( 9)
120/** Upload the image bits. */
121#define SUP_IOCTL_LDR_LOAD SUP_CTL_CODE(10)
122/** Free an image. */
123#define SUP_IOCTL_LDR_FREE SUP_CTL_CODE(11)
124/** Get address of a symbol within an image. */
125#define SUP_IOCTL_LDR_GET_SYMBOL SUP_CTL_CODE(12)
126/** Call the R0 VMM Entry point. */
127#define SUP_IOCTL_CALL_VMMR0 SUP_CTL_CODE(14)
128/** Get the host paging mode. */
129#define SUP_IOCTL_GET_PAGING_MODE SUP_CTL_CODE(15)
130/** Allocate memory below 4GB (physically). */
131#define SUP_IOCTL_LOW_ALLOC SUP_CTL_CODE(16)
132/** Free low memory. */
133#define SUP_IOCTL_LOW_FREE SUP_CTL_CODE(17)
134/** Map the GIP into user space. */
135#define SUP_IOCTL_GIP_MAP SUP_CTL_CODE(18)
136/** Unmap the GIP. */
137#define SUP_IOCTL_GIP_UNMAP SUP_CTL_CODE(19)
138/** Set the VM handle for doing fast call ioctl calls. */
139#define SUP_IOCTL_SET_VM_FOR_FAST SUP_CTL_CODE(20)
140
141/** Fast path IOCtl: VMMR0_DO_RAW_RUN */
142#define SUP_IOCTL_FAST_DO_RAW_RUN SUP_CTL_CODE_FAST(64)
143/** Fast path IOCtl: VMMR0_DO_HWACC_RUN */
144#define SUP_IOCTL_FAST_DO_HWACC_RUN SUP_CTL_CODE_FAST(65)
145/** Just a NOP call for profiling the latency of a fast ioctl call to VMMR0. */
146#define SUP_IOCTL_FAST_DO_NOP SUP_CTL_CODE_FAST(66)
147
148
149/*******************************************************************************
150* Structures and Typedefs *
151*******************************************************************************/
152#ifdef RT_ARCH_AMD64
153# pragma pack(8) /* paranoia. */
154#else
155# pragma pack(4) /* paranoia. */
156#endif
157
158#ifndef RT_OS_WINDOWS
159/**
160 * Structure used by OSes with less advanced ioctl interfaces, i.e. most
161 * Unix like OSes :-)
162 */
163typedef struct SUPDRVIOCTLDATA
164{
165 void *pvIn;
166 unsigned long cbIn;
167 void *pvOut;
168 unsigned long cbOut;
169#ifdef RT_OS_OS2
170 int rc;
171#endif
172} SUPDRVIOCTLDATA, *PSUPDRVIOCTLDATA;
173#endif
174
175
176/** SUPCOOKIE_IN magic word. */
177#define SUPCOOKIE_MAGIC "The Magic Word!"
178/** Current interface version.
179 * The upper 16-bit is the major version, the the lower the minor version.
180 * When incompatible changes are made, the upper major number has to be changed. */
181#define SUPDRVIOC_VERSION 0x00050000
182
183/** SUP_IOCTL_COOKIE Input. */
184typedef struct SUPCOOKIE_IN
185{
186 /** Magic word. */
187 char szMagic[16];
188 /** The requested interface version number. */
189 uint32_t u32ReqVersion;
190 /** The minimum interface version number. */
191 uint32_t u32MinVersion;
192} SUPCOOKIE_IN, *PSUPCOOKIE_IN;
193
194/** SUP_IOCTL_COOKIE Output. */
195typedef struct SUPCOOKIE_OUT
196{
197 /** Cookie. */
198 uint32_t u32Cookie;
199 /** Session cookie. */
200 uint32_t u32SessionCookie;
201 /** Interface version for this session. */
202 uint32_t u32SessionVersion;
203 /** The actual interface version in the driver. */
204 uint32_t u32DriverVersion;
205 /** Number of functions available for the SUP_IOCTL_QUERY_FUNCS request. */
206 uint32_t cFunctions;
207 /** Session handle. */
208 R0PTRTYPE(PSUPDRVSESSION) pSession;
209} SUPCOOKIE_OUT, *PSUPCOOKIE_OUT;
210
211
212
213/** SUP_IOCTL_QUERY_FUNCS Input. */
214typedef struct SUPQUERYFUNCS_IN
215{
216 /** Cookie. */
217 uint32_t u32Cookie;
218 /** Session cookie. */
219 uint32_t u32SessionCookie;
220} SUPQUERYFUNCS_IN, *PSUPQUERYFUNCS_IN;
221
222/** Function. */
223typedef struct SUPFUNC
224{
225 /** Name - mangled. */
226 char szName[32];
227 /** Address. */
228 RTR0PTR pfn;
229} SUPFUNC, *PSUPFUNC;
230
231/** SUP_IOCTL_QUERY_FUNCS Output. */
232typedef struct SUPQUERYFUNCS_OUT
233{
234 /** Number of functions returned. */
235 uint32_t cFunctions;
236 /** Array of functions. */
237 SUPFUNC aFunctions[1];
238} SUPQUERYFUNCS_OUT, *PSUPQUERYFUNCS_OUT;
239
240
241
242/** SUP_IOCTL_IDT_INSTALL Input. */
243typedef struct SUPIDTINSTALL_IN
244{
245 /** Cookie. */
246 uint32_t u32Cookie;
247 /** Session cookie. */
248 uint32_t u32SessionCookie;
249} SUPIDTINSTALL_IN, *PSUPIDTINSTALL_IN;
250
251/** SUP_IOCTL_IDT_INSTALL Output. */
252typedef struct SUPIDTINSTALL_OUT
253{
254 /** Cookie. */
255 uint8_t u8Idt;
256} SUPIDTINSTALL_OUT, *PSUPIDTINSTALL_OUT;
257
258
259
260/** SUP_IOCTL_IDT_REMOVE Input. */
261typedef struct SUPIDTREMOVE_IN
262{
263 /** Cookie. */
264 uint32_t u32Cookie;
265 /** Session cookie. */
266 uint32_t u32SessionCookie;
267} SUPIDTREMOVE_IN, *PSUPIDTREMOVE_IN;
268
269
270
271/** SUP_IOCTL_PINPAGES Input. */
272typedef struct SUPPINPAGES_IN
273{
274 /** Cookie. */
275 uint32_t u32Cookie;
276 /** Session cookie. */
277 uint32_t u32SessionCookie;
278 /** Start of page range. Must be PAGE aligned. */
279 RTR3PTR pvR3;
280 /** Size of the range. Must be PAGE aligned. */
281 uint32_t cPages;
282} SUPPINPAGES_IN, *PSUPPINPAGES_IN;
283
284/** SUP_IOCTL_PINPAGES Output. */
285typedef struct SUPPINPAGES_OUT
286{
287 /** Array of pages. */
288 SUPPAGE aPages[1];
289} SUPPINPAGES_OUT, *PSUPPINPAGES_OUT;
290
291
292
293/** SUP_IOCTL_UNPINPAGES Input. */
294typedef struct SUPUNPINPAGES_IN
295{
296 /** Cookie. */
297 uint32_t u32Cookie;
298 /** Session cookie. */
299 uint32_t u32SessionCookie;
300 /** Start of page range of a range previuosly pinned. */
301 RTR3PTR pvR3;
302} SUPUNPINPAGES_IN, *PSUPUNPINPAGES_IN;
303
304
305
306/** SUP_IOCTL_CONT_ALLOC Input. */
307typedef struct SUPCONTALLOC_IN
308{
309 /** Cookie. */
310 uint32_t u32Cookie;
311 /** Session cookie. */
312 uint32_t u32SessionCookie;
313 /** Number of bytes to allocate. */
314 uint32_t cPages;
315} SUPCONTALLOC_IN, *PSUPCONTALLOC_IN;
316
317
318
319/** SUP_IOCTL_CONT_ALLOC Output. */
320typedef struct SUPCONTALLOC_OUT
321{
322 /** The address of the ring-0 mapping of the allocated memory. */
323 RTR0PTR pvR0;
324 /** The address of the ring-3 mapping of the allocated memory. */
325 RTR3PTR pvR3;
326 /** The physical address of the allocation. */
327 RTHCPHYS HCPhys;
328} SUPCONTALLOC_OUT, *PSUPCONTALLOC_OUT;
329
330
331
332/** SUP_IOCTL_CONT_FREE Input. */
333typedef struct SUPCONTFREE_IN
334{
335 /** Cookie. */
336 uint32_t u32Cookie;
337 /** Session cookie. */
338 uint32_t u32SessionCookie;
339 /** The ring-3 address of the memory to free. */
340 RTR3PTR pvR3;
341} SUPCONTFREE_IN, *PSUPCONTFREE_IN;
342
343
344
345/** SUP_IOCTL_LDR_OPEN Input. */
346typedef struct SUPLDROPEN_IN
347{
348 /** Cookie. */
349 uint32_t u32Cookie;
350 /** Session cookie. */
351 uint32_t u32SessionCookie;
352 /** Size of the image we'll be loading. */
353 uint32_t cbImage;
354 /** Image name.
355 * This is the NAME of the image, not the file name. It is used
356 * to share code with other processes. (Max len is 32 chars!) */
357 char szName[32];
358} SUPLDROPEN_IN, *PSUPLDROPEN_IN;
359
360/** SUP_IOCTL_LDR_OPEN Output. */
361typedef struct SUPLDROPEN_OUT
362{
363 /** The base address of the image. */
364 RTR0PTR pvImageBase;
365 /** Indicate whether or not the image requires loading. */
366 bool fNeedsLoading;
367} SUPLDROPEN_OUT, *PSUPLDROPEN_OUT;
368
369
370
371/**
372 * Module initialization callback function.
373 * This is called once after the module has been loaded.
374 *
375 * @returns 0 on success.
376 * @returns Appropriate error code on failure.
377 */
378typedef DECLCALLBACK(int) FNR0MODULEINIT(void);
379/** Pointer to a FNR0MODULEINIT(). */
380typedef R0PTRTYPE(FNR0MODULEINIT *) PFNR0MODULEINIT;
381
382/**
383 * Module termination callback function.
384 * This is called once right before the module is being unloaded.
385 */
386typedef DECLCALLBACK(void) FNR0MODULETERM(void);
387/** Pointer to a FNR0MODULETERM(). */
388typedef R0PTRTYPE(FNR0MODULETERM *) PFNR0MODULETERM;
389
390/**
391 * Symbol table entry.
392 */
393typedef struct SUPLDRSYM
394{
395 /** Offset into of the string table. */
396 uint32_t offName;
397 /** Offset of the symbol relative to the image load address. */
398 uint32_t offSymbol;
399} SUPLDRSYM, *PSUPLDRSYM;
400
401/** SUP_IOCTL_LDR_LOAD Input. */
402typedef struct SUPLDRLOAD_IN
403{
404 /** Cookie. */
405 uint32_t u32Cookie;
406 /** Session cookie. */
407 uint32_t u32SessionCookie;
408 /** The address of module initialization function. Similar to _DLL_InitTerm(hmod, 0). */
409 PFNR0MODULEINIT pfnModuleInit;
410 /** The address of module termination function. Similar to _DLL_InitTerm(hmod, 1). */
411 PFNR0MODULETERM pfnModuleTerm;
412 /** Special entry points. */
413 union
414 {
415 struct
416 {
417 /** The module handle (i.e. address). */
418 RTR0PTR pvVMMR0;
419 /** Address of VMMR0Entry function. */
420 RTR0PTR pvVMMR0Entry;
421 } VMMR0;
422 } EP;
423 /** Address. */
424 RTR0PTR pvImageBase;
425 /** Entry point type. */
426 enum { EP_NOTHING, EP_VMMR0 }
427 eEPType;
428 /** The offset of the symbol table. */
429 uint32_t offSymbols;
430 /** The number of entries in the symbol table. */
431 uint32_t cSymbols;
432 /** The offset of the string table. */
433 uint32_t offStrTab;
434 /** Size of the string table. */
435 uint32_t cbStrTab;
436 /** Size of image (including string and symbol tables). */
437 uint32_t cbImage;
438 /** The image data. */
439 char achImage[1];
440} SUPLDRLOAD_IN, *PSUPLDRLOAD_IN;
441
442
443
444/** SUP_IOCTL_LDR_FREE Input. */
445typedef struct SUPLDRFREE_IN
446{
447 /** Cookie. */
448 uint32_t u32Cookie;
449 /** Session cookie. */
450 uint32_t u32SessionCookie;
451 /** Address. */
452 RTR0PTR pvImageBase;
453} SUPLDRFREE_IN, *PSUPLDRFREE_IN;
454
455
456
457/** SUP_IOCTL_LDR_GET_SYMBOL Input. */
458typedef struct SUPLDRGETSYMBOL_IN
459{
460 /** Cookie. */
461 uint32_t u32Cookie;
462 /** Session cookie. */
463 uint32_t u32SessionCookie;
464 /** Address. */
465 RTR0PTR pvImageBase;
466 /** The symbol name (variable length). */
467 char szSymbol[1];
468} SUPLDRGETSYMBOL_IN, *PSUPLDRGETSYMBOL_IN;
469
470/** SUP_IOCTL_LDR_GET_SYMBOL Output. */
471typedef struct SUPLDRGETSYMBOL_OUT
472{
473 /** The symbol address. */
474 RTR0PTR pvSymbol;
475} SUPLDRGETSYMBOL_OUT, *PSUPLDRGETSYMBOL_OUT;
476
477
478
479/** SUP_IOCTL_CALL_VMMR0 Input. */
480typedef struct SUPCALLVMMR0_IN
481{
482 /** Cookie. */
483 uint32_t u32Cookie;
484 /** Session cookie. */
485 uint32_t u32SessionCookie;
486 /** The VM handle. */
487 PVMR0 pVMR0;
488 /** Which operation to execute. */
489 uint32_t uOperation;
490 /** The size of the buffer pointed to by pvArg. */
491 uint32_t cbArg;
492 /** Argument to that operation. */
493 RTR3PTR pvArg;
494} SUPCALLVMMR0_IN, *PSUPCALLVMMR0_IN;
495
496/** SUP_IOCTL_CALL_VMMR0 Output. */
497typedef struct SUPCALLVMMR0_OUT
498{
499 /** The VBox status code for the operation. */
500 int32_t rc;
501} SUPCALLVMMR0_OUT, *PSUPCALLVMMR0_OUT;
502
503
504
505/** SUP_IOCTL_GET_PAGING_MODE Input. */
506typedef struct SUPGETPAGINGMODE_IN
507{
508 /** Cookie. */
509 uint32_t u32Cookie;
510 /** Session cookie. */
511 uint32_t u32SessionCookie;
512} SUPGETPAGINGMODE_IN, *PSUPGETPAGINGMODE_IN;
513
514/** SUP_IOCTL_GET_PAGING_MODE Output. */
515typedef struct SUPGETPAGINGMODE_OUT
516{
517 /** The paging mode. */
518 SUPPAGINGMODE enmMode;
519} SUPGETPAGINGMODE_OUT, *PSUPGETPAGINGMODE_OUT;
520
521
522
523/** SUP_IOCTL_LOW_ALLOC Input. */
524typedef struct SUPLOWALLOC_IN
525{
526 /** Cookie. */
527 uint32_t u32Cookie;
528 /** Session cookie. */
529 uint32_t u32SessionCookie;
530 /** Number of pages to allocate. */
531 uint32_t cPages;
532} SUPLOWALLOC_IN, *PSUPLOWALLOC_IN;
533
534/** SUP_IOCTL_LOW_ALLOC Output. */
535typedef struct SUPLOWALLOC_OUT
536{
537 /** The ring-3 address of the allocated memory. */
538 RTR3PTR pvR3;
539 /** The ring-0 address of the allocated memory. */
540 RTR0PTR pvR0;
541 /** Array of pages. */
542 SUPPAGE aPages[1];
543} SUPLOWALLOC_OUT, *PSUPLOWALLOC_OUT;
544
545
546
547/** SUP_IOCTL_LOW_FREE Input. */
548typedef struct SUPLOWFREE_IN
549{
550 /** Cookie. */
551 uint32_t u32Cookie;
552 /** Session cookie. */
553 uint32_t u32SessionCookie;
554 /** The ring-3 address of the memory to free. */
555 RTR3PTR pvR3;
556} SUPLOWFREE_IN, *PSUPLOWFREE_IN;
557
558
559
560/** SUP_IOCTL_GIP_MAP Input. */
561typedef struct SUPGIPMAP_IN
562{
563 /** Cookie. */
564 uint32_t u32Cookie;
565 /** Session cookie. */
566 uint32_t u32SessionCookie;
567} SUPGIPMAP_IN, *PSUPGIPMAP_IN;
568
569/** SUP_IOCTL_GIP_MAP Output. */
570typedef struct SUPGIPMAP_OUT
571{
572 /** Pointer to the read-only usermode GIP mapping for this session. */
573 R3PTRTYPE(PSUPGLOBALINFOPAGE) pGipR3;
574 /** Pointer to the supervisor mode GIP mapping. */
575 R0PTRTYPE(PSUPGLOBALINFOPAGE) pGipR0;
576 /** The physical address of the GIP. */
577 RTHCPHYS HCPhysGip;
578} SUPGIPMAP_OUT, *PSUPGIPMAP_OUT;
579
580
581
582/** SUP_IOCTL_GIP_UNMAP Input. */
583typedef struct SUPGIPUNMAP_IN
584{
585 /** Cookie. */
586 uint32_t u32Cookie;
587 /** Session cookie. */
588 uint32_t u32SessionCookie;
589} SUPGIPUNMAP_IN, *PSUPGIPUNMAP_IN;
590
591
592
593/** SUP_IOCTL_SET_VM_FOR_FAST Input. */
594typedef struct SUPSETVMFORFAST_IN
595{
596 /** Cookie. */
597 uint32_t u32Cookie;
598 /** Session cookie. */
599 uint32_t u32SessionCookie;
600 /** The ring-0 VM handle (pointer). */
601 PVMR0 pVMR0;
602} SUPSETVMFORFAST_IN, *PSUPSETVMFORFAST_IN;
603
604#pragma pack() /* paranoia */
605
606#endif
607
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette