From owner-p4-projects@FreeBSD.ORG Mon Mar 13 02:33:49 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8233916A41F; Mon, 13 Mar 2006 02:33:49 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58A4016A400 for ; Mon, 13 Mar 2006 02:33:49 +0000 (UTC) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2662343D46 for ; Mon, 13 Mar 2006 02:33:49 +0000 (GMT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k2D2XnKp067884 for ; Mon, 13 Mar 2006 02:33:49 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k2D2XmDP067881 for perforce@freebsd.org; Mon, 13 Mar 2006 02:33:48 GMT (envelope-from marcel@freebsd.org) Date: Mon, 13 Mar 2006 02:33:48 GMT Message-Id: <200603130233.k2D2XmDP067881@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Cc: Subject: PERFORCE change 93222 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Mar 2006 02:33:49 -0000 http://perforce.freebsd.org/chv.cgi?CH=93222 Change 93222 by marcel@marcel_nfs on 2006/03/13 02:33:37 o Make the serial interrupt sources visible to the kernel only. o source-specific interrupt handlers return an int to indicate if the interrupt condition was cleared or not. Create the serdev_intr_t type for them. Affected files ... .. //depot/projects/uart/sys/serial.h#5 edit Differences ... ==== //depot/projects/uart/sys/serial.h#5 (text+ko) ==== @@ -65,6 +65,7 @@ #define SER_MASK_DELTA SER_DELTA(SER_MASK_STATE) +#ifdef _KERNEL /* * Specification of interrupt sources typical for serial ports. These are * useful when some umbrella driver like scc(4) has enough knowledge of @@ -82,4 +83,10 @@ #define SER_INT_MASK 0xff0000 #define SER_INT_SIGMASK (SER_MASK_DELTA | SER_MASK_STATE) +#ifndef LOCORE +typedef int serdev_intr_t(void*); +#endif + +#endif /* _KERNEL */ + #endif /* !_SYS_SERIAL_H_ */