From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 21 05:39:07 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 677C016A41F for ; Wed, 21 Sep 2005 05:39:07 +0000 (GMT) (envelope-from nsrashmi@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id F317443D48 for ; Wed, 21 Sep 2005 05:39:06 +0000 (GMT) (envelope-from nsrashmi@gmail.com) Received: by xproxy.gmail.com with SMTP id i26so125823wxd for ; Tue, 20 Sep 2005 22:39:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hchQw/OVpwRZ+diJ6hCYfs6OwGIj/+aXvO6YSQOqJy4Fs9f1Jvg9eA4552CqiGcpTkCF1thd0lxixY1PuD2Cov3r2gSKaou7Uv9BTbuG9T/pMvdpjGEeuauaB2LO4EQ3xr1wpGug58updQBv1XBSgwOBk8zJk3EIF64iV8V0MT4= Received: by 10.70.16.17 with SMTP id 17mr2336477wxp; Tue, 20 Sep 2005 22:39:06 -0700 (PDT) Received: by 10.70.15.12 with HTTP; Tue, 20 Sep 2005 22:39:06 -0700 (PDT) Message-ID: <9f99931605092022396c685991@mail.gmail.com> Date: Wed, 21 Sep 2005 11:09:06 +0530 From: rashmi ns To: bugi@lists.redbrick.dcu.ie, freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: KINDLY HELP : error while kldloading a pci,character driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nsrashmi@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 05:39:07 -0000 Hi All, This is the output of dmesg i get when i kldload my module=20 ***************************************************************************= ********************************** mem 0x40300000-0x40300fff irq 11 at device 11.0 on pci1 WARNING: Device driver "hdlc_cdev" has wrong version and is disabled.=20 Recompile KLD module. ***************************************************************************= ********************************** In attach function of pci driver i'll try to create character device interface i just register this like this sc->hdlc_cdev =3D make_dev (&hdlc_cdevsw,0, UID_ROOT, GID_WHEEL, 0600, "hdlc_cdev"); where=20 static struct cdevsw hdlc_cdevsw =3D { .d_name =3D "hdlc_cdev", .d_maj =3D CDEV_MAJOR, /*251*/ .d_open =3D hdlc_open, .d_read =3D hdlc_read, }; in read and write functions i just have some printf statements inorder to t= est . when i do=20 ls -l /dev/hdlc_cdev crw------- 1 root wheel 251, 0 Sep 20 19:38 /dev/hdlc_cdev cat /dev/hdlc_cdev=20 cat: /dev/hdlc_cdev: Device not configured but why do i get this error Thanks in Advance , Rashmi.N.S