Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 12 Dec 2002 20:36:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 12 Dec 2002 20:34:18 -0500 Received: from modemcable092.130-200-24.mtl.mc.videotron.ca ([24.200.130.92]:23758 "EHLO montezuma.mastecende.com") by vger.kernel.org with ESMTP id ; Thu, 12 Dec 2002 20:32:51 -0500 Date: Thu, 12 Dec 2002 20:43:23 -0500 (EST) From: Zwane Mwaikambo X-X-Sender: zwane@montezuma.mastecende.com To: Linux Kernel cc: Adam Belay Subject: [PATCH][2.5] Resurrect some ISAPNP macros Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1227 Lines: 39 Hi Adam, I think these macros are worth having around, they come in handy whilst converting drivers. Cheers, Zwane Index: linux-2.5.51/include/linux/pnp.h =================================================================== RCS file: /build/cvsroot/linux-2.5.51/include/linux/pnp.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 pnp.h --- linux-2.5.51/include/linux/pnp.h 10 Dec 2002 12:47:35 -0000 1.1.1.1 +++ linux-2.5.51/include/linux/pnp.h 11 Dec 2002 23:12:06 -0000 @@ -23,6 +23,16 @@ #define DEVICE_COUNT_RESOURCE 12 #define MAX_DEVICES 8 +#define ISAPNP_ANY_ID 0xffff +#define ISAPNP_VENDOR(a,b,c) (((((a)-'A'+1)&0x3f)<<2)|\ + ((((b)-'A'+1)&0x18)>>3)|((((b)-'A'+1)&7)<<13)|\ + ((((c)-'A'+1)&0x1f)<<8)) +#define ISAPNP_DEVICE(x) ((((x)&0xf000)>>8)|\ + (((x)&0x0f00)>>8)|\ + (((x)&0x00f0)<<8)|\ + (((x)&0x000f)<<8)) +#define ISAPNP_FUNCTION(x) ISAPNP_DEVICE(x) + struct pnp_resource; struct pnp_protocol; struct pnp_id; -- function.linuxpower.ca - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/