xref: /freebsd/sys/dev/hptnr/hptnr_config.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
11fdeb165SXin LI /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3718cf2ccSPedro F. Giffuni  *
41fdeb165SXin LI  * Copyright (c) 2011 HighPoint Technologies, Inc.
51fdeb165SXin LI  * All rights reserved.
61fdeb165SXin LI  *
71fdeb165SXin LI  * Redistribution and use in source and binary forms, with or without
81fdeb165SXin LI  * modification, are permitted provided that the following conditions
91fdeb165SXin LI  * are met:
101fdeb165SXin LI  * 1. Redistributions of source code must retain the above copyright
111fdeb165SXin LI  *    notice, this list of conditions and the following disclaimer.
121fdeb165SXin LI  * 2. Redistributions in binary form must reproduce the above copyright
131fdeb165SXin LI  *    notice, this list of conditions and the following disclaimer in the
141fdeb165SXin LI  *    documentation and/or other materials provided with the distribution.
151fdeb165SXin LI  *
161fdeb165SXin LI  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
171fdeb165SXin LI  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
181fdeb165SXin LI  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
191fdeb165SXin LI  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
201fdeb165SXin LI  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
211fdeb165SXin LI  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
221fdeb165SXin LI  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
231fdeb165SXin LI  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
241fdeb165SXin LI  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
251fdeb165SXin LI  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
261fdeb165SXin LI  * SUCH DAMAGE.
271fdeb165SXin LI  */
281fdeb165SXin LI 
291fdeb165SXin LI #ifndef hptnr_CONFIG_H
301fdeb165SXin LI #define hptnr_CONFIG_H
311fdeb165SXin LI #define SUPPORT_ARRAY
321fdeb165SXin LI #define __KERNEL__ 1
331fdeb165SXin LI #define DRIVER_MINOR 16
341fdeb165SXin LI #define TARGETNAME hptnr
351fdeb165SXin LI #define __dummy_reg hptnr___dummy_reg
361fdeb165SXin LI #define __ldm_alloc_cmd hptnr___ldm_alloc_cmd
37e157d597SXin LI #define debug_flag hptnr_debug_flag
381fdeb165SXin LI #define delay_between_spinup hptnr_delay_between_spinup
391fdeb165SXin LI #define dmapool_active hptnr_dmapool_active
401fdeb165SXin LI #define dmapool_get_page hptnr_dmapool_get_page
411fdeb165SXin LI #define dmapool_get_page_at hptnr_dmapool_get_page_at
421fdeb165SXin LI #define dmapool_init hptnr_dmapool_init
431fdeb165SXin LI #define dmapool_make_order hptnr_dmapool_make_order
441fdeb165SXin LI #define dmapool_max_class_pages hptnr_dmapool_max_class_pages
451fdeb165SXin LI #define dmapool_put_page hptnr_dmapool_put_page
461fdeb165SXin LI #define dmapool_register_client hptnr_dmapool_register_client
471fdeb165SXin LI #define driver_name hptnr_driver_name
481fdeb165SXin LI #define driver_name_long hptnr_driver_name_long
491fdeb165SXin LI #define driver_ver hptnr_driver_ver
501fdeb165SXin LI #define freelist_get hptnr_freelist_get
511fdeb165SXin LI #define freelist_get_dma hptnr_freelist_get_dma
521fdeb165SXin LI #define freelist_put hptnr_freelist_put
531fdeb165SXin LI #define freelist_put_dma hptnr_freelist_put_dma
541fdeb165SXin LI #define freelist_reserve hptnr_freelist_reserve
551fdeb165SXin LI #define freelist_reserve_dma hptnr_freelist_reserve_dma
561fdeb165SXin LI #define gGlobalNcqFlag hptnr_gGlobalNcqFlag
571fdeb165SXin LI #define gProbeInInitializing hptnr_gProbeInInitializing
581fdeb165SXin LI #define gSGPIOPartSupport hptnr_gSGPIOPartSupport
591fdeb165SXin LI #define gSpinupOneDevEachTime hptnr_gSpinupOneDevEachTime
601fdeb165SXin LI #define g_legacy_mode hptnr_g_legacy_mode
611fdeb165SXin LI #define gautorebuild hptnr_gautorebuild
621fdeb165SXin LI #define grebuildpriority hptnr_grebuildpriority
631fdeb165SXin LI #define him_handle_to_vbus hptnr_him_handle_to_vbus
641fdeb165SXin LI #define him_list hptnr_him_list
651fdeb165SXin LI #define init_config hptnr_init_config
661fdeb165SXin LI #define init_module_him_dc7280 hptnr_init_module_him_dc7280
671fdeb165SXin LI #define init_module_him_r750 hptnr_init_module_him_r750
681fdeb165SXin LI #define init_module_vdev_raw hptnr_init_module_vdev_raw
691fdeb165SXin LI #define ldm_acquire_lock hptnr_ldm_acquire_lock
701fdeb165SXin LI #define ldm_add_spare_to_array hptnr_ldm_add_spare_to_array
711fdeb165SXin LI #define ldm_alloc_cmds_R_6_55_75_46_64 hptnr_ldm_alloc_cmds_R_6_55_75_46_64
721fdeb165SXin LI #define ldm_alloc_cmds_from_list hptnr_ldm_alloc_cmds_from_list
731fdeb165SXin LI #define ldm_check_array_online hptnr_ldm_check_array_online
741fdeb165SXin LI #define ldm_create_vbus hptnr_ldm_create_vbus
751fdeb165SXin LI #define ldm_create_vdev hptnr_ldm_create_vdev
761fdeb165SXin LI #define ldm_event_notify hptnr_ldm_event_notify
771fdeb165SXin LI #define ldm_find_stamp hptnr_ldm_find_stamp
781fdeb165SXin LI #define ldm_find_target hptnr_ldm_find_target
791fdeb165SXin LI #define ldm_finish_cmd hptnr_ldm_finish_cmd
801fdeb165SXin LI #define ldm_free_cmds hptnr_ldm_free_cmds
811fdeb165SXin LI #define ldm_free_cmds_to_list hptnr_ldm_free_cmds_to_list
821fdeb165SXin LI #define ldm_generic_member_failed hptnr_ldm_generic_member_failed
831fdeb165SXin LI #define ldm_get_cmd_size hptnr_ldm_get_cmd_size
841fdeb165SXin LI #define ldm_get_device_id hptnr_ldm_get_device_id
851fdeb165SXin LI #define ldm_get_mem_info hptnr_ldm_get_mem_info
861fdeb165SXin LI #define ldm_get_next_vbus hptnr_ldm_get_next_vbus
871fdeb165SXin LI #define ldm_get_vbus_ext hptnr_ldm_get_vbus_ext
881fdeb165SXin LI #define ldm_get_vbus_size hptnr_ldm_get_vbus_size
891fdeb165SXin LI #define ldm_ide_fixstring hptnr_ldm_ide_fixstring
901fdeb165SXin LI #define ldm_idle hptnr_ldm_idle
911fdeb165SXin LI #define ldm_initialize_vbus_async hptnr_ldm_initialize_vbus_async
921fdeb165SXin LI #define ldm_intr hptnr_ldm_intr
931fdeb165SXin LI #define ldm_ioctl hptnr_ldm_ioctl
941fdeb165SXin LI #define ldm_on_timer hptnr_ldm_on_timer
951fdeb165SXin LI #define ldm_queue_cmd hptnr_ldm_queue_cmd
961fdeb165SXin LI #define ldm_queue_task hptnr_ldm_queue_task
971fdeb165SXin LI #define ldm_queue_vbus_dpc hptnr_ldm_queue_vbus_dpc
981fdeb165SXin LI #define ldm_register_adapter hptnr_ldm_register_adapter
991fdeb165SXin LI #define ldm_register_device hptnr_ldm_register_device
1001fdeb165SXin LI #define ldm_register_him_R_6_55_75_46_64 hptnr_ldm_register_him_R_6_55_75_46_64
1011fdeb165SXin LI #define ldm_register_vdev_class_R_6_55_75_46_64 hptnr_ldm_register_vdev_class_R_6_55_75_46_64
1021fdeb165SXin LI #define ldm_release_lock hptnr_ldm_release_lock
1031fdeb165SXin LI #define ldm_release_vbus hptnr_ldm_release_vbus
1041fdeb165SXin LI #define ldm_release_vdev hptnr_ldm_release_vdev
1051fdeb165SXin LI #define ldm_remove_timer hptnr_ldm_remove_timer
1061fdeb165SXin LI #define ldm_request_timer hptnr_ldm_request_timer
1071fdeb165SXin LI #define ldm_reset_vbus hptnr_ldm_reset_vbus
1081fdeb165SXin LI #define ldm_resume hptnr_ldm_resume
1091fdeb165SXin LI #define ldm_run hptnr_ldm_run
1101fdeb165SXin LI #define ldm_set_autorebuild hptnr_ldm_set_autorebuild
1111fdeb165SXin LI #define ldm_shutdown hptnr_ldm_shutdown
1121fdeb165SXin LI #define ldm_suspend hptnr_ldm_suspend
1131fdeb165SXin LI #define ldm_sync_array_info hptnr_ldm_sync_array_info
1141fdeb165SXin LI #define ldm_sync_array_stamp hptnr_ldm_sync_array_stamp
1151fdeb165SXin LI #define ldm_timer_probe_device hptnr_ldm_timer_probe_device
1161fdeb165SXin LI #define ldm_unregister_device hptnr_ldm_unregister_device
1171fdeb165SXin LI #define log_sector_repair hptnr_log_sector_repair
118e157d597SXin LI #define msi hptnr_msi
1191fdeb165SXin LI #define num_drives_per_spinup hptnr_num_drives_per_spinup
1201fdeb165SXin LI #define os_get_stamp hptnr_os_get_stamp
1211fdeb165SXin LI #define os_get_vbus_seq hptnr_os_get_vbus_seq
1221fdeb165SXin LI #define os_inb hptnr_os_inb
1231fdeb165SXin LI #define os_inl hptnr_os_inl
1241fdeb165SXin LI #define os_insw hptnr_os_insw
1251fdeb165SXin LI #define os_inw hptnr_os_inw
1261fdeb165SXin LI #define os_map_pci_bar hptnr_os_map_pci_bar
1271fdeb165SXin LI #define os_max_cache_size hptnr_os_max_cache_size
1281fdeb165SXin LI #define os_outb hptnr_os_outb
1291fdeb165SXin LI #define os_outl hptnr_os_outl
1301fdeb165SXin LI #define os_outsw hptnr_os_outsw
1311fdeb165SXin LI #define os_outw hptnr_os_outw
1321fdeb165SXin LI #define os_pci_readb hptnr_os_pci_readb
1331fdeb165SXin LI #define os_pci_readl hptnr_os_pci_readl
1341fdeb165SXin LI #define os_pci_readw hptnr_os_pci_readw
1351fdeb165SXin LI #define os_pci_writeb hptnr_os_pci_writeb
1361fdeb165SXin LI #define os_pci_writel hptnr_os_pci_writel
1371fdeb165SXin LI #define os_pci_writew hptnr_os_pci_writew
1381fdeb165SXin LI #define os_printk hptnr_os_printk
1391fdeb165SXin LI #define os_query_remove_device hptnr_os_query_remove_device
1401fdeb165SXin LI #define os_query_time hptnr_os_query_time
1411fdeb165SXin LI #define os_request_timer hptnr_os_request_timer
1421fdeb165SXin LI #define os_revalidate_device hptnr_os_revalidate_device
1431fdeb165SXin LI #define os_schedule_task hptnr_os_schedule_task
1441fdeb165SXin LI #define os_stallexec hptnr_os_stallexec
1451fdeb165SXin LI #define os_unmap_pci_bar hptnr_os_unmap_pci_bar
1461fdeb165SXin LI #define osm_max_targets hptnr_osm_max_targets
1471fdeb165SXin LI #define pcicfg_read_dword hptnr_pcicfg_read_dword
1481fdeb165SXin LI #define vbus_list hptnr_vbus_list
1491fdeb165SXin LI #define vdev_queue_cmd hptnr_vdev_queue_cmd
1501fdeb165SXin LI #endif
151