forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/misc/sgi-xp/xp.h
....@@ -3,6 +3,7 @@
33 * License. See the file "COPYING" in the main directory of this archive
44 * for more details.
55 *
6
+ * (C) Copyright 2020 Hewlett Packard Enterprise Development LP
67 * Copyright (C) 2004-2008 Silicon Graphics, Inc. All rights reserved.
78 */
89
....@@ -17,28 +18,6 @@
1718
1819 #if defined CONFIG_X86_UV || defined CONFIG_IA64_SGI_UV
1920 #include <asm/uv/uv.h>
20
-#define is_uv() is_uv_system()
21
-#endif
22
-
23
-#ifndef is_uv
24
-#define is_uv() 0
25
-#endif
26
-
27
-#if defined CONFIG_IA64
28
-#include <asm/sn/arch.h> /* defines is_shub1() and is_shub2() */
29
-#define is_shub() ia64_platform_is("sn2")
30
-#endif
31
-
32
-#ifndef is_shub1
33
-#define is_shub1() 0
34
-#endif
35
-
36
-#ifndef is_shub2
37
-#define is_shub2() 0
38
-#endif
39
-
40
-#ifndef is_shub
41
-#define is_shub() 0
4221 #endif
4322
4423 #ifdef USE_DBUG_ON
....@@ -96,7 +75,7 @@
9675
9776 #define XPC_MSG_SIZE(_payload_size) \
9877 ALIGN(XPC_MSG_HDR_MAX_SIZE + (_payload_size), \
99
- is_uv() ? 64 : 128)
78
+ is_uv_system() ? 64 : 128)
10079
10180
10281 /*
....@@ -360,9 +339,7 @@
360339 extern int xp_error_PIOR(void);
361340
362341 extern struct device *xp;
363
-extern enum xp_retval xp_init_sn2(void);
364342 extern enum xp_retval xp_init_uv(void);
365
-extern void xp_exit_sn2(void);
366343 extern void xp_exit_uv(void);
367344
368345 #endif /* _DRIVERS_MISC_SGIXP_XP_H */