xref: /freebsd/sys/dev/hpt27xx/hpt27xx_config.h (revision 266b0663c598b7e50c2998974c16f89b7ac23e3a)
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause
3  *
4  * Copyright (c) 2011 HighPoint Technologies, Inc.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26  * SUCH DAMAGE.
27  *
28  * $FreeBSD$
29  */
30 
31 #ifndef hpt27xx_CONFIG_H
32 #define hpt27xx_CONFIG_H
33 #define SUPPORT_ARRAY
34 #define __KERNEL__ 1
35 #define DRIVER_MINOR 16
36 #define TARGETNAME hpt27xx
37 #define __dummy_reg hpt27xx___dummy_reg
38 #define __ldm_alloc_cmd hpt27xx___ldm_alloc_cmd
39 #define delay_between_spinup hpt27xx_delay_between_spinup
40 #define dmapool_active hpt27xx_dmapool_active
41 #define dmapool_get_page hpt27xx_dmapool_get_page
42 #define dmapool_get_page_at hpt27xx_dmapool_get_page_at
43 #define dmapool_init hpt27xx_dmapool_init
44 #define dmapool_make_order hpt27xx_dmapool_make_order
45 #define dmapool_max_class_pages hpt27xx_dmapool_max_class_pages
46 #define dmapool_put_page hpt27xx_dmapool_put_page
47 #define dmapool_register_client hpt27xx_dmapool_register_client
48 #define driver_name hpt27xx_driver_name
49 #define driver_name_long hpt27xx_driver_name_long
50 #define driver_ver hpt27xx_driver_ver
51 #define freelist_get hpt27xx_freelist_get
52 #define freelist_get_dma hpt27xx_freelist_get_dma
53 #define freelist_put hpt27xx_freelist_put
54 #define freelist_put_dma hpt27xx_freelist_put_dma
55 #define freelist_reserve hpt27xx_freelist_reserve
56 #define freelist_reserve_dma hpt27xx_freelist_reserve_dma
57 #define gGlobalNcqFlag hpt27xx_gGlobalNcqFlag
58 #define gProbeInInitializing hpt27xx_gProbeInInitializing
59 #define gSGPIOPartSupport hpt27xx_gSGPIOPartSupport
60 #define gSpinupOneDevEachTime hpt27xx_gSpinupOneDevEachTime
61 #define g_legacy_mode hpt27xx_g_legacy_mode
62 #define gautorebuild hpt27xx_gautorebuild
63 #define grebuildpriority hpt27xx_grebuildpriority
64 #define him_handle_to_vbus hpt27xx_him_handle_to_vbus
65 #define him_list hpt27xx_him_list
66 #define init_config hpt27xx_init_config
67 #define init_module_him_rr2720 hpt27xx_init_module_him_rr2720
68 #define init_module_him_rr273x hpt27xx_init_module_him_rr273x
69 #define init_module_him_rr276x hpt27xx_init_module_him_rr276x
70 #define init_module_him_rr278x hpt27xx_init_module_him_rr278x
71 #define init_module_jbod hpt27xx_init_module_jbod
72 #define init_module_partition hpt27xx_init_module_partition
73 #define init_module_raid0 hpt27xx_init_module_raid0
74 #define init_module_raid1 hpt27xx_init_module_raid1
75 #define init_module_raid5 hpt27xx_init_module_raid5
76 #define init_module_vdev_raw hpt27xx_init_module_vdev_raw
77 #define ldm_acquire_lock hpt27xx_ldm_acquire_lock
78 #define ldm_add_spare_to_array hpt27xx_ldm_add_spare_to_array
79 #define ldm_alloc_cmds_R_6_55_75_46_64 hpt27xx_ldm_alloc_cmds_R_6_55_75_46_64
80 #define ldm_alloc_cmds_from_list hpt27xx_ldm_alloc_cmds_from_list
81 #define ldm_check_array_online hpt27xx_ldm_check_array_online
82 #define ldm_create_vbus hpt27xx_ldm_create_vbus
83 #define ldm_create_vdev hpt27xx_ldm_create_vdev
84 #define ldm_event_notify hpt27xx_ldm_event_notify
85 #define ldm_find_stamp hpt27xx_ldm_find_stamp
86 #define ldm_find_target hpt27xx_ldm_find_target
87 #define ldm_finish_cmd hpt27xx_ldm_finish_cmd
88 #define ldm_free_cmds hpt27xx_ldm_free_cmds
89 #define ldm_free_cmds_to_list hpt27xx_ldm_free_cmds_to_list
90 #define ldm_generic_member_failed hpt27xx_ldm_generic_member_failed
91 #define ldm_get_cmd_size hpt27xx_ldm_get_cmd_size
92 #define ldm_get_device_id hpt27xx_ldm_get_device_id
93 #define ldm_get_mem_info hpt27xx_ldm_get_mem_info
94 #define ldm_get_next_vbus hpt27xx_ldm_get_next_vbus
95 #define ldm_get_vbus_ext hpt27xx_ldm_get_vbus_ext
96 #define ldm_get_vbus_size hpt27xx_ldm_get_vbus_size
97 #define ldm_ide_fixstring hpt27xx_ldm_ide_fixstring
98 #define ldm_idle hpt27xx_ldm_idle
99 #define ldm_initialize_vbus_async hpt27xx_ldm_initialize_vbus_async
100 #define ldm_intr hpt27xx_ldm_intr
101 #define ldm_ioctl hpt27xx_ldm_ioctl
102 #define ldm_on_timer hpt27xx_ldm_on_timer
103 #define ldm_queue_cmd hpt27xx_ldm_queue_cmd
104 #define ldm_queue_task hpt27xx_ldm_queue_task
105 #define ldm_queue_vbus_dpc hpt27xx_ldm_queue_vbus_dpc
106 #define ldm_register_adapter hpt27xx_ldm_register_adapter
107 #define ldm_register_device hpt27xx_ldm_register_device
108 #define ldm_register_him_R_6_55_75_46_64 hpt27xx_ldm_register_him_R_6_55_75_46_64
109 #define ldm_register_vdev_class_R_6_55_75_46_64 hpt27xx_ldm_register_vdev_class_R_6_55_75_46_64
110 #define ldm_release_lock hpt27xx_ldm_release_lock
111 #define ldm_release_vbus hpt27xx_ldm_release_vbus
112 #define ldm_release_vdev hpt27xx_ldm_release_vdev
113 #define ldm_remove_timer hpt27xx_ldm_remove_timer
114 #define ldm_request_timer hpt27xx_ldm_request_timer
115 #define ldm_reset_vbus hpt27xx_ldm_reset_vbus
116 #define ldm_resume hpt27xx_ldm_resume
117 #define ldm_run hpt27xx_ldm_run
118 #define ldm_set_autorebuild hpt27xx_ldm_set_autorebuild
119 #define ldm_shutdown hpt27xx_ldm_shutdown
120 #define ldm_suspend hpt27xx_ldm_suspend
121 #define ldm_sync_array_info hpt27xx_ldm_sync_array_info
122 #define ldm_sync_array_stamp hpt27xx_ldm_sync_array_stamp
123 #define ldm_timer_probe_device hpt27xx_ldm_timer_probe_device
124 #define ldm_unregister_device hpt27xx_ldm_unregister_device
125 #define log_sector_repair hpt27xx_log_sector_repair
126 #define num_drives_per_spinup hpt27xx_num_drives_per_spinup
127 #define os_get_stamp hpt27xx_os_get_stamp
128 #define os_get_vbus_seq hpt27xx_os_get_vbus_seq
129 #define os_inb hpt27xx_os_inb
130 #define os_inl hpt27xx_os_inl
131 #define os_insw hpt27xx_os_insw
132 #define os_inw hpt27xx_os_inw
133 #define os_map_pci_bar hpt27xx_os_map_pci_bar
134 #define os_max_cache_size hpt27xx_os_max_cache_size
135 #define os_outb hpt27xx_os_outb
136 #define os_outl hpt27xx_os_outl
137 #define os_outsw hpt27xx_os_outsw
138 #define os_outw hpt27xx_os_outw
139 #define os_pci_readb hpt27xx_os_pci_readb
140 #define os_pci_readl hpt27xx_os_pci_readl
141 #define os_pci_readw hpt27xx_os_pci_readw
142 #define os_pci_writeb hpt27xx_os_pci_writeb
143 #define os_pci_writel hpt27xx_os_pci_writel
144 #define os_pci_writew hpt27xx_os_pci_writew
145 #define os_printk hpt27xx_os_printk
146 #define os_query_remove_device hpt27xx_os_query_remove_device
147 #define os_query_time hpt27xx_os_query_time
148 #define os_request_timer hpt27xx_os_request_timer
149 #define os_revalidate_device hpt27xx_os_revalidate_device
150 #define os_schedule_task hpt27xx_os_schedule_task
151 #define os_stallexec hpt27xx_os_stallexec
152 #define os_unmap_pci_bar hpt27xx_os_unmap_pci_bar
153 #define osm_max_targets hpt27xx_osm_max_targets
154 #define pcicfg_read_byte hpt27xx_pcicfg_read_byte
155 #define pcicfg_read_dword hpt27xx_pcicfg_read_dword
156 #define vbus_list hpt27xx_vbus_list
157 #define vdev_queue_cmd hpt27xx_vdev_queue_cmd
158 #define get_dmapool_phy_addr hpt27xx_get_dmapool_phy_addr
159 #endif
160