]> git.pld-linux.org Git - packages/kernel.git/blame - kernel-2.4.18-SPARC64-PLD.patch
- obsolete
[packages/kernel.git] / kernel-2.4.18-SPARC64-PLD.patch
CommitLineData
752737d1 1diff -Nur linux.org/arch/sparc64/kernel/sys_sparc32.c linux/arch/sparc64/kernel/sys_sparc32.c
2--- linux.org/arch/sparc64/kernel/sys_sparc32.c Wed Apr 10 13:55:06 2002
3+++ linux/arch/sparc64/kernel/sys_sparc32.c Tue Apr 9 13:32:18 2002
4@@ -58,6 +58,8 @@
5
6 #include <net/scm.h>
7
8+#include <linux/quotacompat.h>
9+
10 /* Use this to get at 32-bit user passed pointers. */
11 /* Things to consider: the low-level assembly stub does
12 srl x, 0, x for first four arguments, so if you have
13diff -Nur linux.org/include/asm-sparc64/dma.h linux/include/asm-sparc64/dma.h
14--- linux.org/include/asm-sparc64/dma.h Tue Feb 1 08:37:19 2000
15+++ linux/include/asm-sparc64/dma.h Wed Apr 10 13:19:47 2002
16@@ -225,3 +225,4 @@
17 #define DMA_CHUNK_SIZE 8192
18
19 #endif /* !(_ASM_SPARC64_DMA_H) */
20+#define DMA_AUTOINIT 0x10
21diff -Nur linux.org/include/asm-sparc64/termbits.h linux/include/asm-sparc64/termbits.h
22--- linux.org/include/asm-sparc64/termbits.h Tue Feb 22 01:32:27 2000
23+++ linux/include/asm-sparc64/termbits.h Wed Apr 10 13:34:07 2002
24@@ -171,8 +171,8 @@
25 adjust CBAUD constant and drivers accordingly.
26 #define B2500000 0x00001010
27 #define B3000000 0x00001011
28-#define B3500000 0x00001012
29-#define B4000000 0x00001013 */
30+#define B3500000 0x00001012 */
31+#define B4000000 0x00001013
32 #define CIBAUD 0x100f0000 /* input baud rate (not used) */
33 #define CMSPAR 0x40000000 /* mark or space (stick) parity */
34 #define CRTSCTS 0x80000000 /* flow control */
35diff -Nur linux.org/include/asm-sparc64/vfc_ioctls.h linux/include/asm-sparc64/vfc_ioctls.h
36--- linux.org/include/asm-sparc64/vfc_ioctls.h Thu Jan 1 01:00:00 1970
37+++ linux/include/asm-sparc64/vfc_ioctls.h Tue Apr 15 01:28:21 1997
38@@ -0,0 +1,58 @@
39+/* Copyright (c) 1996 by Manish Vachharajani */
40+
41+#ifndef _LINUX_VFC_IOCTLS_H_
42+#define _LINUX_VFC_IOCTLS_H_
43+
44+ /* IOCTLs */
45+#define VFC_IOCTL(a) (('j' << 8) | a)
46+#define VFCGCTRL (VFC_IOCTL (0)) /* get vfc attributes */
47+#define VFCSCTRL (VFC_IOCTL (1)) /* set vfc attributes */
48+#define VFCGVID (VFC_IOCTL (2)) /* get video decoder attributes */
49+#define VFCSVID (VFC_IOCTL (3)) /* set video decoder attributes */
50+#define VFCHUE (VFC_IOCTL (4)) /* set hue */
51+#define VFCPORTCHG (VFC_IOCTL (5)) /* change port */
52+#define VFCRDINFO (VFC_IOCTL (6)) /* read info */
53+
54+ /* Options for setting the vfc attributes and status */
55+#define MEMPRST 0x1 /* reset FIFO ptr. */
56+#define CAPTRCMD 0x2 /* start capture and wait */
57+#define DIAGMODE 0x3 /* diag mode */
58+#define NORMMODE 0x4 /* normal mode */
59+#define CAPTRSTR 0x5 /* start capture */
60+#define CAPTRWAIT 0x6 /* wait for capture to finish */
61+
62+
63+ /* Options for the decoder */
64+#define STD_NTSC 0x1 /* NTSC mode */
65+#define STD_PAL 0x2 /* PAL mode */
66+#define COLOR_ON 0x3 /* force color ON */
67+#define MONO 0x4 /* force color OFF */
68+
69+ /* Values returned by ioctl 2 */
70+
71+#define NO_LOCK 1
72+#define NTSC_COLOR 2
73+#define NTSC_NOCOLOR 3
74+#define PAL_COLOR 4
75+#define PAL_NOCOLOR 5
76+
77+/* Not too sure what this does yet */
78+ /* Options for setting Field number */
79+#define ODD_FIELD 0x1
80+#define EVEN_FIELD 0x0
81+#define ACTIVE_ONLY 0x2
82+#define NON_ACTIVE 0x0
83+
84+/* Debug options */
85+#define VFC_I2C_SEND 0
86+#define VFC_I2C_RECV 1
87+
88+struct vfc_debug_inout
89+{
90+ unsigned long addr;
91+ unsigned long ret;
92+ unsigned long len;
93+ unsigned char *buffer;
94+};
95+
96+#endif /* _LINUX_VFC_IOCTLS_H_ */
This page took 0.158696 seconds and 4 git commands to generate.