sd_with_uata.wlcmd revision 3138:7bbdcbfa4cd5
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29add scsi_watch_request::swr_callback targets \
30	sd.c:sd_mhd_watch_cb \
31	sd.c:sd_media_watch_cb
32	
33add     __ddi_xbuf_attr::xa_strategy targets sd_xbuf_strategy
34
35add scsi_pkt::pkt_comp targets \
36	sd.c:sd_mhd_watch_cb \
37	sd.c:sd_media_watch_cb \
38	sd.c:sd_mhd_watch_cb \
39	scsi_watch.c:scsi_watch_request_intr \
40	sd.c:sdintr
41
42one 	scsi_device
43one 	ata_controller
44one     __ddi_xbuf_attr
45one     sd_lun
46one     sd_resv_reclaim_request
47
48
49### The following are not used
50for ptr in `funcptrs | grep '^scsi_hba_tran::'`
51do
52        add $ptr target warlock_dummy
53done
54
55
56### Declaring the following as root functions
57root scsi_hba_add_eventcall scsi_hba_get_eventcookie scsi_hba_post_event
58root scsi_hba_remove_eventcall ata_bus_ctl ghd_timer_fini ghd_timer_init
59
60root sd_handle_mchange sd_media_change_task sd_start_stop_unit_task
61root sd_wm_cache_constructor sd_wm_cache_destructor sd_read_modify_write_task
62root sd_failfast_flushq_callback sd_reenable_dsense_task
63
64add sd.c:sd_start_cmds/funcp target sd_initpkt_for_buf sd_initpkt_for_uscsi
65
66### These are the HBA entry points for atapi
67add scsi_hba_tran::tran_tgt_init target atapi_tran_tgt_init
68add scsi_hba_tran::tran_tgt_probe target atapi_tran_tgt_probe
69add scsi_hba_tran::tran_start  target atapi_tran_start
70add scsi_hba_tran::tran_abort target atapi_tran_abort
71add scsi_hba_tran::tran_init_pkt target atapi_tran_init_pkt
72add scsi_hba_tran::tran_destroy_pkt  target atapi_tran_destroy_pkt
73
74add ata_pkt::ap_start targets \
75        atapi_start \
76        ata_disk_start
77
78add ata_pkt::ap_intr targets \
79        atapi_intr \
80        ata_disk_intr
81
82add ata_pkt::ap_complete targets \
83        atapi_complete \
84        ata_disk_complete
85
86### Entry points for ghd
87
88add cmd_ctl::ccc_hba_start target ata_hba_start
89add cmd_ctl::ccc_hba_complete target ata_hba_complete
90add cmd_ctl::ccc_process_intr target ata_process_intr
91add cmd_ctl::ccc_get_status target ata_get_status
92add cmd_ctl::ccc_timeout_func target ata_timeout_func
93add processfunc target ata_process_intr
94add statfunc target ata_get_status
95
96
97### The following are commented as they would not be called
98
99add dcd_pkt::pkt_comp target warlock_dummy
100add cmd_ctl::ccc_ccballoc target warlock_dummy
101add cmd_ctl::ccc_ccbfree target warlock_dummy
102
103### Ignore the following functions as they are never used
104
105ignore L1_remove ata_disk_init_reset ghd_doneq_put ghd_gcmd_alloc
106ignore ghd_gcmd_free ghd_timer_stop ghd_tran_sync_pkt
107ignore scsi_htos_3byte scsi_htos_long scsi_htos_short scsi_stoh_3byte
108ignore scsi_stoh_long scsi_stoh_short sd_mhd_reset_notify_cb
109
110### The following functions need to be ignored for sd as they are never called
111### for atapi device. The uata hba caters to dad target driver also & the
112### the following are entry points for it
113ignore make_prd ata_disk_tran_abort ata_disk_tran_destroy_pkt
114ignore ata_disk_tran_init_pkt ata_disk_tran_reset ata_disk_tran_start
115ignore ata_disk_tran_tgt_init ata_disk_tran_tgt_probe
116
117### The following are atapi related but never invoked so ignore them too.
118
119ignore atapi_tran_dmafree atapi_tran_sync_pkt
120root 	atapi_signature
121root    scsi_hba_bus_power
122ignore  delay
123add     sd_uscsi_info::ui_dkc.dkc_callback targets warlock_dummy
124add     dk_callback::dkc_callback targets warlock_dummy
125
126root ghd_pktfree ghd_pktalloc
127