From owner-freebsd-hackers Fri Jul 18 18:03:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA27546 for hackers-outgoing; Fri, 18 Jul 1997 18:03:41 -0700 (PDT) Received: from agni.nuko.com ([206.79.130.80]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA27541 for ; Fri, 18 Jul 1997 18:03:38 -0700 (PDT) Received: (from vinay@localhost) by agni.nuko.com (8.8.5/8.7.3) id SAA23276 for freebsd-hackers@freebsd.org; Fri, 18 Jul 1997 18:01:30 -0700 (PDT) From: Vinay Bannai Message-Id: <199707190101.SAA23276@agni.nuko.com> Subject: What interrupts to mask in my device driver?? To: freebsd-hackers@freebsd.org Date: Fri, 18 Jul 1997 18:01:29 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi folks, I am in the middle of a PCI driver implementation. The board has a i960 processor and memory. I have been able to probe and attach it successfully. Here are couple of questions: - Before calling pci_map_mem() and pci_map_int(), I noticed that David Greenman has disabled network device interrupts. What interrupts should I disable on the device that I have? Here are the details of my device from the probe routine. Currently I am not disabling any interrupts and it seems to attach okay.. cyclone0 rev 19 int a irq 9 on pci0:15 cyclone0: attach: unit configured cyclone0: attach: memmory successfully mapped Vendor ID = 113c Device ID = 0001 Command = 0107 Status = 0280 Base class = ff, Sub-class = 00, Interface = 00 Revision = 13 BIST = 00 Header type = 00 Latency = 42 Cache line size = 00 Base addr 0 = 0001113c Base addr 1 = 02800107 Base addr 2 = ff000013 Base addr 3 = 00004200 Base addr 4 = fffbec00 Base addr 5 = 0000fc81 ROM base = fee00000 Interrupt line = 09 Interrupt pin = 01 Min_Gnt = 00 Max_Lat = 00 - Next question: Are there any freely available gcc cross compilers for i960 Kx architecture? Thanks Vinay --- Vinay Bannai E-mail: vinay@agni.nuko.com (408)-526-0280 x 275 (Work) http://agni.nuko.com/~vinay