aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp/xp_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/sgi-xp/xp_main.c')
-rw-r--r--drivers/misc/sgi-xp/xp_main.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/drivers/misc/sgi-xp/xp_main.c b/drivers/misc/sgi-xp/xp_main.c
index 6f25613b27e3..9c0ce2f15ff6 100644
--- a/drivers/misc/sgi-xp/xp_main.c
+++ b/drivers/misc/sgi-xp/xp_main.c
@@ -58,10 +58,9 @@ xpc_notloaded(void)
58struct xpc_interface xpc_interface = { 58struct xpc_interface xpc_interface = {
59 (void (*)(int))xpc_notloaded, 59 (void (*)(int))xpc_notloaded,
60 (void (*)(int))xpc_notloaded, 60 (void (*)(int))xpc_notloaded,
61 (enum xp_retval(*)(short, int, u32, void **))xpc_notloaded, 61 (enum xp_retval(*)(short, int, u32, void *, u16))xpc_notloaded,
62 (enum xp_retval(*)(short, int, void *))xpc_notloaded, 62 (enum xp_retval(*)(short, int, u32, void *, u16, xpc_notify_func,
63 (enum xp_retval(*)(short, int, void *, xpc_notify_func, void *)) 63 void *))xpc_notloaded,
64 xpc_notloaded,
65 (void (*)(short, int, void *))xpc_notloaded, 64 (void (*)(short, int, void *))xpc_notloaded,
66 (enum xp_retval(*)(short, void *))xpc_notloaded 65 (enum xp_retval(*)(short, void *))xpc_notloaded
67}; 66};
@@ -73,16 +72,14 @@ EXPORT_SYMBOL_GPL(xpc_interface);
73void 72void
74xpc_set_interface(void (*connect) (int), 73xpc_set_interface(void (*connect) (int),
75 void (*disconnect) (int), 74 void (*disconnect) (int),
76 enum xp_retval (*allocate) (short, int, u32, void **), 75 enum xp_retval (*send) (short, int, u32, void *, u16),
77 enum xp_retval (*send) (short, int, void *), 76 enum xp_retval (*send_notify) (short, int, u32, void *, u16,
78 enum xp_retval (*send_notify) (short, int, void *,
79 xpc_notify_func, void *), 77 xpc_notify_func, void *),
80 void (*received) (short, int, void *), 78 void (*received) (short, int, void *),
81 enum xp_retval (*partid_to_nasids) (short, void *)) 79 enum xp_retval (*partid_to_nasids) (short, void *))
82{ 80{
83 xpc_interface.connect = connect; 81 xpc_interface.connect = connect;
84 xpc_interface.disconnect = disconnect; 82 xpc_interface.disconnect = disconnect;
85 xpc_interface.allocate = allocate;
86 xpc_interface.send = send; 83 xpc_interface.send = send;
87 xpc_interface.send_notify = send_notify; 84 xpc_interface.send_notify = send_notify;
88 xpc_interface.received = received; 85 xpc_interface.received = received;
@@ -98,13 +95,11 @@ xpc_clear_interface(void)
98{ 95{
99 xpc_interface.connect = (void (*)(int))xpc_notloaded; 96 xpc_interface.connect = (void (*)(int))xpc_notloaded;
100 xpc_interface.disconnect = (void (*)(int))xpc_notloaded; 97 xpc_interface.disconnect = (void (*)(int))xpc_notloaded;
101 xpc_interface.allocate = (enum xp_retval(*)(short, int, u32, 98 xpc_interface.send = (enum xp_retval(*)(short, int, u32, void *, u16))
102 void **))xpc_notloaded;
103 xpc_interface.send = (enum xp_retval(*)(short, int, void *))
104 xpc_notloaded; 99 xpc_notloaded;
105 xpc_interface.send_notify = (enum xp_retval(*)(short, int, void *, 100 xpc_interface.send_notify = (enum xp_retval(*)(short, int, u32, void *,
106 xpc_notify_func, 101 u16, xpc_notify_func,
107 void *))xpc_notloaded; 102 void *))xpc_notloaded;
108 xpc_interface.received = (void (*)(short, int, void *)) 103 xpc_interface.received = (void (*)(short, int, void *))
109 xpc_notloaded; 104 xpc_notloaded;
110 xpc_interface.partid_to_nasids = (enum xp_retval(*)(short, void *)) 105 xpc_interface.partid_to_nasids = (enum xp_retval(*)(short, void *))