1843e1988Sjohnlev# 2843e1988Sjohnlev# CDDL HEADER START 3843e1988Sjohnlev# 4843e1988Sjohnlev# The contents of this file are subject to the terms of the 5843e1988Sjohnlev# Common Development and Distribution License (the "License"). 6843e1988Sjohnlev# You may not use this file except in compliance with the License. 7843e1988Sjohnlev# 8843e1988Sjohnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9843e1988Sjohnlev# or http://www.opensolaris.org/os/licensing. 10843e1988Sjohnlev# See the License for the specific language governing permissions 11843e1988Sjohnlev# and limitations under the License. 12843e1988Sjohnlev# 13843e1988Sjohnlev# When distributing Covered Code, include this CDDL HEADER in each 14843e1988Sjohnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15843e1988Sjohnlev# If applicable, add the following below this CDDL HEADER, with the 16843e1988Sjohnlev# fields enclosed by brackets "[]" replaced with your own identifying 17843e1988Sjohnlev# information: Portions Copyright [yyyy] [name of copyright owner] 18843e1988Sjohnlev# 19843e1988Sjohnlev# CDDL HEADER END 20843e1988Sjohnlev# 21843e1988Sjohnlev 22843e1988Sjohnlev# 2378323854SJudy Chen# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24843e1988Sjohnlev# Use is subject to license terms. 25843e1988Sjohnlev# 26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 277b1019a6SJerry Jelinek# 28843e1988Sjohnlev# This makefile drives the production of the ISA nexus driver 29843e1988Sjohnlev# 30843e1988Sjohnlev# i86xpv implementation architecture dependent 31843e1988Sjohnlev# 32843e1988Sjohnlev 33843e1988Sjohnlev# 34843e1988Sjohnlev# Path to the base of the uts directory tree (usually /usr/src/uts). 35843e1988Sjohnlev# 36843e1988SjohnlevUTSBASE = ../.. 37843e1988Sjohnlev 38843e1988Sjohnlev# 39843e1988Sjohnlev# Define the module and object file sets. 40843e1988Sjohnlev# 41843e1988SjohnlevMODULE = isa 42843e1988SjohnlevOBJECTS = $(ISANEXUS_OBJS:%=$(OBJS_DIR)/%) 43843e1988SjohnlevROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 44843e1988SjohnlevINC_PATH += -I$(UTSBASE)/i86pc/sys/acpi 45843e1988Sjohnlev 46843e1988Sjohnlev# 47843e1988Sjohnlev# Include common rules. 48843e1988Sjohnlev# 49843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv 50843e1988Sjohnlev 51843e1988Sjohnlev# 52843e1988Sjohnlev# Define targets 53843e1988Sjohnlev# 54843e1988SjohnlevALL_TARGET = $(BINARY) 55843e1988SjohnlevINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56843e1988Sjohnlev 577b1019a6SJerry Jelinek$(OBJS_DIR)/isa.o := CERRWARN += -_gcc=-Wno-unused-function 587b1019a6SJerry Jelinek 59b6b206fcSJohn Levon# needs work 60b6b206fcSJohn Levon$(OBJS_DIR)/i8237A.o := SMOFF += indenting 61b6b206fcSJohn Levon 62843e1988Sjohnlev# 630aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 640aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 650aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles. 66843e1988Sjohnlev# 67843e1988SjohnlevCFLAGS += $(CCVERBOSE) 680aaef2f5SRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 69843e1988Sjohnlev 70843e1988Sjohnlev# 71843e1988Sjohnlev# Dependency 72*82d0151aSRichard LoweLDFLAGS += -Nmisc/acpica -Nmisc/busra -Nmisc/pci_autoconfig 73843e1988Sjohnlev 74843e1988Sjohnlev# 75843e1988Sjohnlev# Define our version of dma_engine and i8237A interfaces 76843e1988Sjohnlev# 770aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_init=$(MODULE)_i_dmae_init 780aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_acquire=$(MODULE)_i_dmae_acquire 790aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_free=$(MODULE)_i_dmae_free 800aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_get_best_mode=$(MODULE)_i_dmae_get_best_mode 810aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -D_dmae_nxcookie=$(MODULE)__dmae_nxcookie 820aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_prog=$(MODULE)_i_dmae_prog 830aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_swsetup=$(MODULE)_i_dmae_swsetup 840aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_swsetup=$(MODULE)_i_dmae_swsetup 850aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_swstart=$(MODULE)_i_dmae_swstart 860aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_stop=$(MODULE)_i_dmae_stop 870aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_enable=$(MODULE)_i_dmae_enable 880aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_disable=$(MODULE)_i_dmae_disable 890aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Di_dmae_get_chan_stat=$(MODULE)_i_dmae_get_chan_stat 900aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_init=$(MODULE)_d37A_init 910aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_dma_valid=$(MODULE)_d37A_dma_valid 920aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_dma_release=$(MODULE)_d37A_dma_release 930aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_dma_disable=$(MODULE)_d37A_dma_disable 940aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_dma_enable=$(MODULE)_d37A_dma_enable 950aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_get_best_mode=$(MODULE)_d37A_get_best_mode 960aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_intr=$(MODULE)_d37A_intr 970aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -DdEISA_setchain=$(MODULE)_dEISA_setchain 980aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_prog_chan=$(MODULE)_d37A_prog_chan 990aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_dma_swsetup=$(MODULE)_d37A_dma_swsetup 1000aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_dma_swstart=$(MODULE)_d37A_dma_swstart 1010aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_dma_stop=$(MODULE)_d37A_dma_stop 1020aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_get_chan_stat=$(MODULE)_d37A_get_chan_stat 1030aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_set_mode=$(MODULE)_d37A_set_mode 1040aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_write_addr=$(MODULE)_d37A_write_addr 1050aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_read_addr=$(MODULE)_d37A_read_addr 1060aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_write_count=$(MODULE)_d37A_write_count 1070aaef2f5SRichard Lowe$(OBJECTS) := CPPFLAGS += -Dd37A_read_count=$(MODULE)_d37A_read_count 108843e1988Sjohnlev 109843e1988Sjohnlev# 110843e1988Sjohnlev# Default build targets. 111843e1988Sjohnlev# 112843e1988Sjohnlev.KEEP_STATE: 113843e1988Sjohnlev 114843e1988Sjohnlevdef: $(DEF_DEPS) 115843e1988Sjohnlev 116843e1988Sjohnlevall: $(ALL_DEPS) 117843e1988Sjohnlev 118843e1988Sjohnlevclean: $(CLEAN_DEPS) 119843e1988Sjohnlev 120843e1988Sjohnlevclobber: $(CLOBBER_DEPS) 121843e1988Sjohnlev 122843e1988Sjohnlevinstall: $(INSTALL_DEPS) 123843e1988Sjohnlev 124843e1988Sjohnlev# 125843e1988Sjohnlev# Include common targets. 126843e1988Sjohnlev# 127843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ 128