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# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# 26 27one fc_port 28 29# 30# List of interrupt handlers in the port driver 31# 32FP_INTERRUPT_HANDLERS="fp_flogi_intr fp_plogi_intr fp_logo_intr fp_adisc_intr\ 33 fp_ns_intr fp_intr fp_linit_intr fp_rls_intr" 34 35# 36# Lately warlock doesn't seem to recognize job_comp field in 2.8 37# environment - however it does in fp_with_fctl.wlcmd. So root 38# out the following functions 39# 40# PS: ns suggests me to start using locklint, but that will 41# take some time 42# 43root fp_startup_done 44 45# 46# List of callbacks in the port driver 47# 48FP_CALLBACK_HANDLERS="fp_statec_cb fp_unsol_cb" 49 50# 51# Give warlock a dummy target for each of the function 52# pointers in the fca_tran structure. 53# 54 55for ptr in `funcptrs | grep '^fca_tran::'` 56do 57 add $ptr target warlock_dummy 58done 59 60# 61# add interrupt targets to fca_transport and fca_els_send 62# 63add fp_cmd::cmd_transport targets $FP_INTERRUPT_HANDLERS 64add fc_packet::pkt_comp targets $FP_INTERRUPT_HANDLERS 65 66# 67# Till such time we actually use the following bus_ops 68# vectors, make them target to warlock_dummys 69# 70add bus_ops::bus_get_eventcookie target warlock_dummy 71add bus_ops::bus_add_eventcall target warlock_dummy 72add bus_ops::bus_remove_eventcall target warlock_dummy 73add bus_ops::bus_post_event target warlock_dummy 74add bus_ops::bus_intr_ctl target warlock_dummy 75 76ignore fp_cache_constructor fp_cache_destructor 77 78# 79# Make all callback handlers as root 80# 81for ptr in $FP_CALLBACK_HANDLERS 82do 83 root $ptr 84done 85