1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+ */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun * Standard Hot Plug Controller Driver
4*4882a593Smuzhiyun *
5*4882a593Smuzhiyun * Copyright (C) 1995,2001 Compaq Computer Corporation
6*4882a593Smuzhiyun * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
7*4882a593Smuzhiyun * Copyright (C) 2001 IBM
8*4882a593Smuzhiyun * Copyright (C) 2003-2004 Intel Corporation
9*4882a593Smuzhiyun *
10*4882a593Smuzhiyun * All rights reserved.
11*4882a593Smuzhiyun *
12*4882a593Smuzhiyun * Send feedback to <greg@kroah.com>,<kristen.c.accardi@intel.com>
13*4882a593Smuzhiyun *
14*4882a593Smuzhiyun */
15*4882a593Smuzhiyun #ifndef _SHPCHP_H
16*4882a593Smuzhiyun #define _SHPCHP_H
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun #include <linux/types.h>
19*4882a593Smuzhiyun #include <linux/pci.h>
20*4882a593Smuzhiyun #include <linux/pci_hotplug.h>
21*4882a593Smuzhiyun #include <linux/delay.h>
22*4882a593Smuzhiyun #include <linux/sched/signal.h> /* signal_pending(), struct timer_list */
23*4882a593Smuzhiyun #include <linux/mutex.h>
24*4882a593Smuzhiyun #include <linux/workqueue.h>
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun #if !defined(MODULE)
27*4882a593Smuzhiyun #define MY_NAME "shpchp"
28*4882a593Smuzhiyun #else
29*4882a593Smuzhiyun #define MY_NAME THIS_MODULE->name
30*4882a593Smuzhiyun #endif
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun extern bool shpchp_poll_mode;
33*4882a593Smuzhiyun extern int shpchp_poll_time;
34*4882a593Smuzhiyun extern bool shpchp_debug;
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun #define dbg(format, arg...) \
37*4882a593Smuzhiyun do { \
38*4882a593Smuzhiyun if (shpchp_debug) \
39*4882a593Smuzhiyun printk(KERN_DEBUG "%s: " format, MY_NAME, ## arg); \
40*4882a593Smuzhiyun } while (0)
41*4882a593Smuzhiyun #define err(format, arg...) \
42*4882a593Smuzhiyun printk(KERN_ERR "%s: " format, MY_NAME, ## arg)
43*4882a593Smuzhiyun #define info(format, arg...) \
44*4882a593Smuzhiyun printk(KERN_INFO "%s: " format, MY_NAME, ## arg)
45*4882a593Smuzhiyun #define warn(format, arg...) \
46*4882a593Smuzhiyun printk(KERN_WARNING "%s: " format, MY_NAME, ## arg)
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun #define ctrl_dbg(ctrl, format, arg...) \
49*4882a593Smuzhiyun do { \
50*4882a593Smuzhiyun if (shpchp_debug) \
51*4882a593Smuzhiyun pci_printk(KERN_DEBUG, ctrl->pci_dev, \
52*4882a593Smuzhiyun format, ## arg); \
53*4882a593Smuzhiyun } while (0)
54*4882a593Smuzhiyun #define ctrl_err(ctrl, format, arg...) \
55*4882a593Smuzhiyun pci_err(ctrl->pci_dev, format, ## arg)
56*4882a593Smuzhiyun #define ctrl_info(ctrl, format, arg...) \
57*4882a593Smuzhiyun pci_info(ctrl->pci_dev, format, ## arg)
58*4882a593Smuzhiyun #define ctrl_warn(ctrl, format, arg...) \
59*4882a593Smuzhiyun pci_warn(ctrl->pci_dev, format, ## arg)
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun
62*4882a593Smuzhiyun #define SLOT_NAME_SIZE 10
63*4882a593Smuzhiyun struct slot {
64*4882a593Smuzhiyun u8 bus;
65*4882a593Smuzhiyun u8 device;
66*4882a593Smuzhiyun u16 status;
67*4882a593Smuzhiyun u32 number;
68*4882a593Smuzhiyun u8 is_a_board;
69*4882a593Smuzhiyun u8 state;
70*4882a593Smuzhiyun u8 attention_save;
71*4882a593Smuzhiyun u8 presence_save;
72*4882a593Smuzhiyun u8 latch_save;
73*4882a593Smuzhiyun u8 pwr_save;
74*4882a593Smuzhiyun struct controller *ctrl;
75*4882a593Smuzhiyun const struct hpc_ops *hpc_ops;
76*4882a593Smuzhiyun struct hotplug_slot hotplug_slot;
77*4882a593Smuzhiyun struct list_head slot_list;
78*4882a593Smuzhiyun struct delayed_work work; /* work for button event */
79*4882a593Smuzhiyun struct mutex lock;
80*4882a593Smuzhiyun struct workqueue_struct *wq;
81*4882a593Smuzhiyun u8 hp_slot;
82*4882a593Smuzhiyun };
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun struct event_info {
85*4882a593Smuzhiyun u32 event_type;
86*4882a593Smuzhiyun struct slot *p_slot;
87*4882a593Smuzhiyun struct work_struct work;
88*4882a593Smuzhiyun };
89*4882a593Smuzhiyun
90*4882a593Smuzhiyun struct controller {
91*4882a593Smuzhiyun struct mutex crit_sect; /* critical section mutex */
92*4882a593Smuzhiyun struct mutex cmd_lock; /* command lock */
93*4882a593Smuzhiyun int num_slots; /* Number of slots on ctlr */
94*4882a593Smuzhiyun int slot_num_inc; /* 1 or -1 */
95*4882a593Smuzhiyun struct pci_dev *pci_dev;
96*4882a593Smuzhiyun struct list_head slot_list;
97*4882a593Smuzhiyun const struct hpc_ops *hpc_ops;
98*4882a593Smuzhiyun wait_queue_head_t queue; /* sleep & wake process */
99*4882a593Smuzhiyun u8 slot_device_offset;
100*4882a593Smuzhiyun u32 pcix_misc2_reg; /* for amd pogo errata */
101*4882a593Smuzhiyun u32 first_slot; /* First physical slot number */
102*4882a593Smuzhiyun u32 cap_offset;
103*4882a593Smuzhiyun unsigned long mmio_base;
104*4882a593Smuzhiyun unsigned long mmio_size;
105*4882a593Smuzhiyun void __iomem *creg;
106*4882a593Smuzhiyun struct timer_list poll_timer;
107*4882a593Smuzhiyun };
108*4882a593Smuzhiyun
109*4882a593Smuzhiyun /* Define AMD SHPC ID */
110*4882a593Smuzhiyun #define PCI_DEVICE_ID_AMD_POGO_7458 0x7458
111*4882a593Smuzhiyun
112*4882a593Smuzhiyun /* AMD PCI-X bridge registers */
113*4882a593Smuzhiyun #define PCIX_MEM_BASE_LIMIT_OFFSET 0x1C
114*4882a593Smuzhiyun #define PCIX_MISCII_OFFSET 0x48
115*4882a593Smuzhiyun #define PCIX_MISC_BRIDGE_ERRORS_OFFSET 0x80
116*4882a593Smuzhiyun
117*4882a593Smuzhiyun /* AMD PCIX_MISCII masks and offsets */
118*4882a593Smuzhiyun #define PERRNONFATALENABLE_MASK 0x00040000
119*4882a593Smuzhiyun #define PERRFATALENABLE_MASK 0x00080000
120*4882a593Smuzhiyun #define PERRFLOODENABLE_MASK 0x00100000
121*4882a593Smuzhiyun #define SERRNONFATALENABLE_MASK 0x00200000
122*4882a593Smuzhiyun #define SERRFATALENABLE_MASK 0x00400000
123*4882a593Smuzhiyun
124*4882a593Smuzhiyun /* AMD PCIX_MISC_BRIDGE_ERRORS masks and offsets */
125*4882a593Smuzhiyun #define PERR_OBSERVED_MASK 0x00000001
126*4882a593Smuzhiyun
127*4882a593Smuzhiyun /* AMD PCIX_MEM_BASE_LIMIT masks */
128*4882a593Smuzhiyun #define RSE_MASK 0x40000000
129*4882a593Smuzhiyun
130*4882a593Smuzhiyun #define INT_BUTTON_IGNORE 0
131*4882a593Smuzhiyun #define INT_PRESENCE_ON 1
132*4882a593Smuzhiyun #define INT_PRESENCE_OFF 2
133*4882a593Smuzhiyun #define INT_SWITCH_CLOSE 3
134*4882a593Smuzhiyun #define INT_SWITCH_OPEN 4
135*4882a593Smuzhiyun #define INT_POWER_FAULT 5
136*4882a593Smuzhiyun #define INT_POWER_FAULT_CLEAR 6
137*4882a593Smuzhiyun #define INT_BUTTON_PRESS 7
138*4882a593Smuzhiyun #define INT_BUTTON_RELEASE 8
139*4882a593Smuzhiyun #define INT_BUTTON_CANCEL 9
140*4882a593Smuzhiyun
141*4882a593Smuzhiyun #define STATIC_STATE 0
142*4882a593Smuzhiyun #define BLINKINGON_STATE 1
143*4882a593Smuzhiyun #define BLINKINGOFF_STATE 2
144*4882a593Smuzhiyun #define POWERON_STATE 3
145*4882a593Smuzhiyun #define POWEROFF_STATE 4
146*4882a593Smuzhiyun
147*4882a593Smuzhiyun /* Error messages */
148*4882a593Smuzhiyun #define INTERLOCK_OPEN 0x00000002
149*4882a593Smuzhiyun #define ADD_NOT_SUPPORTED 0x00000003
150*4882a593Smuzhiyun #define CARD_FUNCTIONING 0x00000005
151*4882a593Smuzhiyun #define ADAPTER_NOT_SAME 0x00000006
152*4882a593Smuzhiyun #define NO_ADAPTER_PRESENT 0x00000009
153*4882a593Smuzhiyun #define NOT_ENOUGH_RESOURCES 0x0000000B
154*4882a593Smuzhiyun #define DEVICE_TYPE_NOT_SUPPORTED 0x0000000C
155*4882a593Smuzhiyun #define WRONG_BUS_FREQUENCY 0x0000000D
156*4882a593Smuzhiyun #define POWER_FAILURE 0x0000000E
157*4882a593Smuzhiyun
158*4882a593Smuzhiyun int __must_check shpchp_create_ctrl_files(struct controller *ctrl);
159*4882a593Smuzhiyun void shpchp_remove_ctrl_files(struct controller *ctrl);
160*4882a593Smuzhiyun int shpchp_sysfs_enable_slot(struct slot *slot);
161*4882a593Smuzhiyun int shpchp_sysfs_disable_slot(struct slot *slot);
162*4882a593Smuzhiyun u8 shpchp_handle_attention_button(u8 hp_slot, struct controller *ctrl);
163*4882a593Smuzhiyun u8 shpchp_handle_switch_change(u8 hp_slot, struct controller *ctrl);
164*4882a593Smuzhiyun u8 shpchp_handle_presence_change(u8 hp_slot, struct controller *ctrl);
165*4882a593Smuzhiyun u8 shpchp_handle_power_fault(u8 hp_slot, struct controller *ctrl);
166*4882a593Smuzhiyun int shpchp_configure_device(struct slot *p_slot);
167*4882a593Smuzhiyun void shpchp_unconfigure_device(struct slot *p_slot);
168*4882a593Smuzhiyun void cleanup_slots(struct controller *ctrl);
169*4882a593Smuzhiyun void shpchp_queue_pushbutton_work(struct work_struct *work);
170*4882a593Smuzhiyun int shpc_init(struct controller *ctrl, struct pci_dev *pdev);
171*4882a593Smuzhiyun
slot_name(struct slot * slot)172*4882a593Smuzhiyun static inline const char *slot_name(struct slot *slot)
173*4882a593Smuzhiyun {
174*4882a593Smuzhiyun return hotplug_slot_name(&slot->hotplug_slot);
175*4882a593Smuzhiyun }
176*4882a593Smuzhiyun
177*4882a593Smuzhiyun struct ctrl_reg {
178*4882a593Smuzhiyun volatile u32 base_offset;
179*4882a593Smuzhiyun volatile u32 slot_avail1;
180*4882a593Smuzhiyun volatile u32 slot_avail2;
181*4882a593Smuzhiyun volatile u32 slot_config;
182*4882a593Smuzhiyun volatile u16 sec_bus_config;
183*4882a593Smuzhiyun volatile u8 msi_ctrl;
184*4882a593Smuzhiyun volatile u8 prog_interface;
185*4882a593Smuzhiyun volatile u16 cmd;
186*4882a593Smuzhiyun volatile u16 cmd_status;
187*4882a593Smuzhiyun volatile u32 intr_loc;
188*4882a593Smuzhiyun volatile u32 serr_loc;
189*4882a593Smuzhiyun volatile u32 serr_intr_enable;
190*4882a593Smuzhiyun volatile u32 slot1;
191*4882a593Smuzhiyun } __attribute__ ((packed));
192*4882a593Smuzhiyun
193*4882a593Smuzhiyun /* offsets to the controller registers based on the above structure layout */
194*4882a593Smuzhiyun enum ctrl_offsets {
195*4882a593Smuzhiyun BASE_OFFSET = offsetof(struct ctrl_reg, base_offset),
196*4882a593Smuzhiyun SLOT_AVAIL1 = offsetof(struct ctrl_reg, slot_avail1),
197*4882a593Smuzhiyun SLOT_AVAIL2 = offsetof(struct ctrl_reg, slot_avail2),
198*4882a593Smuzhiyun SLOT_CONFIG = offsetof(struct ctrl_reg, slot_config),
199*4882a593Smuzhiyun SEC_BUS_CONFIG = offsetof(struct ctrl_reg, sec_bus_config),
200*4882a593Smuzhiyun MSI_CTRL = offsetof(struct ctrl_reg, msi_ctrl),
201*4882a593Smuzhiyun PROG_INTERFACE = offsetof(struct ctrl_reg, prog_interface),
202*4882a593Smuzhiyun CMD = offsetof(struct ctrl_reg, cmd),
203*4882a593Smuzhiyun CMD_STATUS = offsetof(struct ctrl_reg, cmd_status),
204*4882a593Smuzhiyun INTR_LOC = offsetof(struct ctrl_reg, intr_loc),
205*4882a593Smuzhiyun SERR_LOC = offsetof(struct ctrl_reg, serr_loc),
206*4882a593Smuzhiyun SERR_INTR_ENABLE = offsetof(struct ctrl_reg, serr_intr_enable),
207*4882a593Smuzhiyun SLOT1 = offsetof(struct ctrl_reg, slot1),
208*4882a593Smuzhiyun };
209*4882a593Smuzhiyun
get_slot(struct hotplug_slot * hotplug_slot)210*4882a593Smuzhiyun static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot)
211*4882a593Smuzhiyun {
212*4882a593Smuzhiyun return container_of(hotplug_slot, struct slot, hotplug_slot);
213*4882a593Smuzhiyun }
214*4882a593Smuzhiyun
shpchp_find_slot(struct controller * ctrl,u8 device)215*4882a593Smuzhiyun static inline struct slot *shpchp_find_slot(struct controller *ctrl, u8 device)
216*4882a593Smuzhiyun {
217*4882a593Smuzhiyun struct slot *slot;
218*4882a593Smuzhiyun
219*4882a593Smuzhiyun list_for_each_entry(slot, &ctrl->slot_list, slot_list) {
220*4882a593Smuzhiyun if (slot->device == device)
221*4882a593Smuzhiyun return slot;
222*4882a593Smuzhiyun }
223*4882a593Smuzhiyun
224*4882a593Smuzhiyun ctrl_err(ctrl, "Slot (device=0x%02x) not found\n", device);
225*4882a593Smuzhiyun return NULL;
226*4882a593Smuzhiyun }
227*4882a593Smuzhiyun
amd_pogo_errata_save_misc_reg(struct slot * p_slot)228*4882a593Smuzhiyun static inline void amd_pogo_errata_save_misc_reg(struct slot *p_slot)
229*4882a593Smuzhiyun {
230*4882a593Smuzhiyun u32 pcix_misc2_temp;
231*4882a593Smuzhiyun
232*4882a593Smuzhiyun /* save MiscII register */
233*4882a593Smuzhiyun pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, &pcix_misc2_temp);
234*4882a593Smuzhiyun
235*4882a593Smuzhiyun p_slot->ctrl->pcix_misc2_reg = pcix_misc2_temp;
236*4882a593Smuzhiyun
237*4882a593Smuzhiyun /* clear SERR/PERR enable bits */
238*4882a593Smuzhiyun pcix_misc2_temp &= ~SERRFATALENABLE_MASK;
239*4882a593Smuzhiyun pcix_misc2_temp &= ~SERRNONFATALENABLE_MASK;
240*4882a593Smuzhiyun pcix_misc2_temp &= ~PERRFLOODENABLE_MASK;
241*4882a593Smuzhiyun pcix_misc2_temp &= ~PERRFATALENABLE_MASK;
242*4882a593Smuzhiyun pcix_misc2_temp &= ~PERRNONFATALENABLE_MASK;
243*4882a593Smuzhiyun pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, pcix_misc2_temp);
244*4882a593Smuzhiyun }
245*4882a593Smuzhiyun
amd_pogo_errata_restore_misc_reg(struct slot * p_slot)246*4882a593Smuzhiyun static inline void amd_pogo_errata_restore_misc_reg(struct slot *p_slot)
247*4882a593Smuzhiyun {
248*4882a593Smuzhiyun u32 pcix_misc2_temp;
249*4882a593Smuzhiyun u32 pcix_bridge_errors_reg;
250*4882a593Smuzhiyun u32 pcix_mem_base_reg;
251*4882a593Smuzhiyun u8 perr_set;
252*4882a593Smuzhiyun u8 rse_set;
253*4882a593Smuzhiyun
254*4882a593Smuzhiyun /* write-one-to-clear Bridge_Errors[ PERR_OBSERVED ] */
255*4882a593Smuzhiyun pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISC_BRIDGE_ERRORS_OFFSET, &pcix_bridge_errors_reg);
256*4882a593Smuzhiyun perr_set = pcix_bridge_errors_reg & PERR_OBSERVED_MASK;
257*4882a593Smuzhiyun if (perr_set) {
258*4882a593Smuzhiyun ctrl_dbg(p_slot->ctrl,
259*4882a593Smuzhiyun "Bridge_Errors[ PERR_OBSERVED = %08X] (W1C)\n",
260*4882a593Smuzhiyun perr_set);
261*4882a593Smuzhiyun
262*4882a593Smuzhiyun pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISC_BRIDGE_ERRORS_OFFSET, perr_set);
263*4882a593Smuzhiyun }
264*4882a593Smuzhiyun
265*4882a593Smuzhiyun /* write-one-to-clear Memory_Base_Limit[ RSE ] */
266*4882a593Smuzhiyun pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MEM_BASE_LIMIT_OFFSET, &pcix_mem_base_reg);
267*4882a593Smuzhiyun rse_set = pcix_mem_base_reg & RSE_MASK;
268*4882a593Smuzhiyun if (rse_set) {
269*4882a593Smuzhiyun ctrl_dbg(p_slot->ctrl, "Memory_Base_Limit[ RSE ] (W1C)\n");
270*4882a593Smuzhiyun
271*4882a593Smuzhiyun pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MEM_BASE_LIMIT_OFFSET, rse_set);
272*4882a593Smuzhiyun }
273*4882a593Smuzhiyun /* restore MiscII register */
274*4882a593Smuzhiyun pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, &pcix_misc2_temp);
275*4882a593Smuzhiyun
276*4882a593Smuzhiyun if (p_slot->ctrl->pcix_misc2_reg & SERRFATALENABLE_MASK)
277*4882a593Smuzhiyun pcix_misc2_temp |= SERRFATALENABLE_MASK;
278*4882a593Smuzhiyun else
279*4882a593Smuzhiyun pcix_misc2_temp &= ~SERRFATALENABLE_MASK;
280*4882a593Smuzhiyun
281*4882a593Smuzhiyun if (p_slot->ctrl->pcix_misc2_reg & SERRNONFATALENABLE_MASK)
282*4882a593Smuzhiyun pcix_misc2_temp |= SERRNONFATALENABLE_MASK;
283*4882a593Smuzhiyun else
284*4882a593Smuzhiyun pcix_misc2_temp &= ~SERRNONFATALENABLE_MASK;
285*4882a593Smuzhiyun
286*4882a593Smuzhiyun if (p_slot->ctrl->pcix_misc2_reg & PERRFLOODENABLE_MASK)
287*4882a593Smuzhiyun pcix_misc2_temp |= PERRFLOODENABLE_MASK;
288*4882a593Smuzhiyun else
289*4882a593Smuzhiyun pcix_misc2_temp &= ~PERRFLOODENABLE_MASK;
290*4882a593Smuzhiyun
291*4882a593Smuzhiyun if (p_slot->ctrl->pcix_misc2_reg & PERRFATALENABLE_MASK)
292*4882a593Smuzhiyun pcix_misc2_temp |= PERRFATALENABLE_MASK;
293*4882a593Smuzhiyun else
294*4882a593Smuzhiyun pcix_misc2_temp &= ~PERRFATALENABLE_MASK;
295*4882a593Smuzhiyun
296*4882a593Smuzhiyun if (p_slot->ctrl->pcix_misc2_reg & PERRNONFATALENABLE_MASK)
297*4882a593Smuzhiyun pcix_misc2_temp |= PERRNONFATALENABLE_MASK;
298*4882a593Smuzhiyun else
299*4882a593Smuzhiyun pcix_misc2_temp &= ~PERRNONFATALENABLE_MASK;
300*4882a593Smuzhiyun pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, pcix_misc2_temp);
301*4882a593Smuzhiyun }
302*4882a593Smuzhiyun
303*4882a593Smuzhiyun struct hpc_ops {
304*4882a593Smuzhiyun int (*power_on_slot)(struct slot *slot);
305*4882a593Smuzhiyun int (*slot_enable)(struct slot *slot);
306*4882a593Smuzhiyun int (*slot_disable)(struct slot *slot);
307*4882a593Smuzhiyun int (*set_bus_speed_mode)(struct slot *slot, enum pci_bus_speed speed);
308*4882a593Smuzhiyun int (*get_power_status)(struct slot *slot, u8 *status);
309*4882a593Smuzhiyun int (*get_attention_status)(struct slot *slot, u8 *status);
310*4882a593Smuzhiyun int (*set_attention_status)(struct slot *slot, u8 status);
311*4882a593Smuzhiyun int (*get_latch_status)(struct slot *slot, u8 *status);
312*4882a593Smuzhiyun int (*get_adapter_status)(struct slot *slot, u8 *status);
313*4882a593Smuzhiyun int (*get_adapter_speed)(struct slot *slot, enum pci_bus_speed *speed);
314*4882a593Smuzhiyun int (*get_mode1_ECC_cap)(struct slot *slot, u8 *mode);
315*4882a593Smuzhiyun int (*get_prog_int)(struct slot *slot, u8 *prog_int);
316*4882a593Smuzhiyun int (*query_power_fault)(struct slot *slot);
317*4882a593Smuzhiyun void (*green_led_on)(struct slot *slot);
318*4882a593Smuzhiyun void (*green_led_off)(struct slot *slot);
319*4882a593Smuzhiyun void (*green_led_blink)(struct slot *slot);
320*4882a593Smuzhiyun void (*release_ctlr)(struct controller *ctrl);
321*4882a593Smuzhiyun int (*check_cmd_status)(struct controller *ctrl);
322*4882a593Smuzhiyun };
323*4882a593Smuzhiyun
324*4882a593Smuzhiyun #endif /* _SHPCHP_H */
325