Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-09 Thread Mark Felder
On Mon, 09 Jan 2012 19:56:47 -0600, Hiroki Sato wrote: This is an expected behavior. ACCEPT_RTADV is disabled by default on 9.X. Thanks for clarifying. I'll make sure I update our documentation at work regarding how exactly to get ACCEPT_RTADV working so this is clarified. Regards,

Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-09 Thread Hiroki Sato
ult on 9.X. fe> I try forcing via the sysctl: net.inet6.ip6.accept_rtadv=1 fe> fe> Still doesn't work! This needs a reboot. Did you reboot the box? fe> Why? What makes this machine different? All the other machines I run fe> do not require this to get ACCEPT_RTADV. Is

Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-09 Thread Mark Felder
other machines I run do not require this to get ACCEPT_RTADV. Is it the re driver? My other machines have em and ath interfaces. Thanks, Mark ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-09 Thread Hiroki Sato
Mark Felder wrote in : fe> On Sat, 07 Jan 2012 14:23:46 -0600, Hiroki Sato fe> wrote: fe> fe> > It is an unexpected behavior and the flag should be set on all fe> > interfaces. Can you send me your /etc/rc.conf, /etc/sysctl.conf, and fe> > the result of "ifconfig -a"? fe> fe> Back at work

Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-09 Thread Mark Felder
On Sat, 07 Jan 2012 14:23:46 -0600, Hiroki Sato wrote: It is an unexpected behavior and the flag should be set on all interfaces. Can you send me your /etc/rc.conf, /etc/sysctl.conf, and the result of "ifconfig -a"? Back at work so I have access to the machine again: rc.conf: hostname="

Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-07 Thread Hiroki Sato
Mark Felder wrote in <891fe25c-1560-479f-b855-1713c1c7a...@email.android.com>: fe> Hiroki Sato wrote: fe> > fe> > Is it correct that ACCEPT_RTADV option was enabled on the vboxnet0 fe> > and not on re0, even after setting net.inet6.ip6.accept_rtadv to 1 at fe> > boot time and ipv6_activate_all

Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-07 Thread Mark Felder
Hiroki Sato wrote: > > Is it correct that ACCEPT_RTADV option was enabled on the vboxnet0 > and not on re0, even after setting net.inet6.ip6.accept_rtadv to 1 at > boot time and ipv6_activate_all_interfaces="YES"? > >-- Hiroki Yes, that is the behavior I witnessed. _

Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-07 Thread Hiroki Sato
Mark Felder wrote in : fe> I figured I would end up putting that in rc.conf as a temporary fix, fe> but maybe that's just the long term solution. It seems so odd to me fe> that the sysctl change doesn't automatically cause the ACCEPT_RTADV fe> option to show up for re0, but it does for vboxnet0

Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-06 Thread Doug Barton
Looping in hrs@ because he's the author of those changes. On 01/06/2012 11:35, Mark Felder wrote: > On Fri, 06 Jan 2012 12:49:45 -0600, Sergey Kandaurov > wrote: > >> >> You mean ipv6_activate_all_interfaces="YES" ? >> > Yes... Unfortunately that's what I get for typing it manually and being > d

Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-06 Thread Mark Felder
On Fri, 06 Jan 2012 12:49:45 -0600, Sergey Kandaurov wrote: You mean ipv6_activate_all_interfaces="YES" ? Yes... Unfortunately that's what I get for typing it manually and being distracted at the time. :-) What is in your rc.conf? Do you have "inet6 accept_rtadv" keyword in it? IIRC it

Re: accepting rtadv broken on 9-STABLE, re driver?

2012-01-06 Thread Sergey Kandaurov
re's the > ACCEPT_RTADV??? >        media: Ethernet autoselect (100baseTX ) >        status: active > > I have to manually do > > # ifconfig re0 inet6 accept_rtadv > > to get it to work. Am I missing something? Grepping /etc/rc.d/ for rtadv > finds no clues. Is

accepting rtadv broken on 9-STABLE, re driver?

2012-01-06 Thread Mark Felder
omething? Grepping /etc/rc.d/ for rtadv finds no clues. Is this broken for everyone, for the re driver, or am I just crazy? Here's pciconf for the device -- let me know if any further info would be useful: re0@pci0:4:0:0: class=0x02 card=0x04f51028 chip=0x816810ec rev=0x06

Re: Driver memory allocation

2010-12-15 Thread Julian Elischer
On 12/15/10 4:33 AM, Dr. Baud wrote: Is there a cap on the amount of memory a driver (via bus_dmamem_alloc) can allocate, other than the obvious physical memory limit minus the memory already allocated? well it has to fit into the kernel virtual space too. this is quite limited on x86 thou

Re: Driver tpm(4) and third party packages for trusted platform modules

2010-08-12 Thread Takanori Watanabe
In message <20100811203042.ga26...@modermoor.genua.de>, Hans-Joerg Hoexer wrote: >Hi, > >On Wed, Aug 04, 2010 at 07:39:41PM +0900, Takanori Watanabe wrote: >> Update my patch. Split bus attachment from main driver file >> (need to update sys/conf/files), add detach method for convinience, >> and a

Re: Driver tpm(4) and third party packages for trusted platform modules

2010-08-04 Thread Takanori Watanabe
In message <201008040347.o743leer046...@sana.init-main.com>, wrote: >Quick review and hack: > >1.How about attaching it as acpi child driver? > >In some case, TPM may appear in ACPI namespace (with _HID) and >TPM spec defines ACPI method to handle TPM specific request. > >2. Is identify method need

Re: Driver tpm(4) and third party packages for trusted platform modules

2010-08-03 Thread Takanori Watanabe
In message <20100802120236.gb29...@modermoor.genua.de>, Hans-Joerg Hoexer wrote: >Hi, > >we have developed a driver tpm(4) for various TPMs for OpenBSD 4.7 and >FreeBSD 8.0 and have ported and updated several third party packages to >enable use of TPMs on Open- and FreeBSD. This enables applicatio

Re: Driver accessing other drivers/devices ?

2008-08-22 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "Alex Hornung" <[EMAIL PROTECTED]> writes: : Hello, : : I need to access the hard disk from within a driver that is not a FS. : I would also need to get a list of PCI devices connected. Is there a : way I can access these devices directly, at least in th

Re: Driver not unset properly after kldunload

2006-12-07 Thread Iasen Kostov
On Wed, 2006-12-06 at 11:35 -0500, John Baldwin wrote: ... > I don't see why this patch changes things. devclass_delete_device() only > clears dev->unit, dev->devclass, and dev->nameunit. device_set_driver() > doesn't check or clear any of those. In fact, your change does make > device_set_dr

Re: Driver not unset properly after kldunload

2006-12-06 Thread John Baldwin
On Wednesday 29 November 2006 18:18, Iasen Kostoff wrote: > Hi, > It seems that after I load and then unload a driver its name stays > linked to the device e.g: > > [EMAIL PROTECTED]:10:0: class=0x068000 card=0x81411043 chip=0x005710de > rev=0xa3 > hdr=0x00 > > but of course if_nfe is neither

Re: Driver for a 3G mobile phone.

2006-01-10 Thread Takanori Watanabe
In message <[EMAIL PROTECTED]>, "M. Warner Losh" wrote: >takawata-san, > >I have looked over this patch, and it looks good to me. Will you have >time to commit it soon, or would you like someone else to commit for >you? I'll commit it soon. Thanks. ___

Re: Driver for a 3G mobile phone.

2006-01-09 Thread M. Warner Losh
takawata-san, I have looked over this patch, and it looks good to me. Will you have time to commit it soon, or would you like someone else to commit for you? Warner ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/

Re: Driver for a 3G mobile phone.

2006-01-08 Thread Dirk-Willem van Gulik
On Sun, 8 Jan 2006 [EMAIL PROTECTED] wrote: > I wrote a driver for it. http://www.init-main.com/ufoma.tar.gz> WoW - thank you. This worked perfectly and out of the box (the modem,vendor1) ! Would love to see this going into freebsd by default. Dw. _

Re: Driver crashes after unloading a module

2005-11-21 Thread John Baldwin
On Sunday 20 November 2005 11:04 am, rashmi ns wrote: > Hello List , > > Thanks for the help you given me . > > We have written driver for hdlc controller .The kernel is crashing > after unloading > the module with trap 12 fault .here is the order in which we release the > resources while detach

Re: Driver Development Books?

2005-10-12 Thread Bruce R. Montague
Hi, re: > The problem that I am having > right now is > that I have a fairly nice graphics card which, for the moment is only > supported on Windows Operating systems, and old 2.4 Linux kernels. Someone mentioned X drivers; current X drivers are dynamically loaded into the X server, which

Re: Driver Development Books?

2005-10-12 Thread Sangwoo Shim
2005/10/12, Scott Long <[EMAIL PROTECTED]>: > Pete wrote: > > Hello, > >I have what may seem to be a silly question, but I cannot find any > > other decent resources on the web. >.< The problem that I am having > > right now is > > that I have a fairly nice graphics card which, for the moment i

Re: Driver Development Books?

2005-10-12 Thread Scott Long
Sangwoo Shim wrote: 2005/10/12, Scott Long <[EMAIL PROTECTED]>: Pete wrote: Hello, I have what may seem to be a silly question, but I cannot find any other decent resources on the web. >.< The problem that I am having right now is that I have a fairly nice graphics card which, for the mome

Re: Driver Development Books?

2005-10-12 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Scott Long <[EMAIL PROTECTED]> writes: : For more detailed information, you'll need : to dig into the kernel source code, look for appropriate manual pages, : and ask questions. There are a number of really good people on this : list that try to answer m

Re: Driver Development Books?

2005-10-12 Thread Scott Long
Pete wrote: Hello, I have what may seem to be a silly question, but I cannot find any other decent resources on the web. >.< The problem that I am having right now is that I have a fairly nice graphics card which, for the moment is only supported on Windows Operating systems, and old 2.4 Li

Re: Driver Development Books?

2005-10-12 Thread Joao Barros
On 10/11/05, Pete <[EMAIL PROTECTED]> wrote: > Hello, > I have what may seem to be a silly question, but I cannot find any > other decent resources on the web. >.< The problem that I am having > right now is > that I have a fairly nice graphics card which, for the moment is only > supported on

Re: Driver Development Books?

2005-10-12 Thread Sergey Babkin
>From: Pete <[EMAIL PROTECTED]> >Date: Tue Oct 11 11:47:28 CDT 2005 >To: freebsd-hackers@freebsd.org >Subject: Driver Development Books? >Hello, >I have what may seem to be a silly question, but I cannot find any >other decent resources on the web. >.< The problem that I am having >right now

Re: Driver Update Disk discussion

2005-02-28 Thread John Baldwin
On Friday 25 February 2005 04:39 am, Peter Jeremy wrote: > On Thu, 2005-Feb-24 17:59:19 -0700, Scott Long wrote: > >- kernel option support. How do we support vendor modules in a kernel > >that might be compiled with PAE (rather common these days), SMP, MAC, > >etc. The loader and /boot infrastru

Re: Driver Update Disk discussion

2005-02-25 Thread Peter Jeremy
On Thu, 2005-Feb-24 17:59:19 -0700, Scott Long wrote: >- kernel option support. How do we support vendor modules in a kernel >that might be compiled with PAE (rather common these days), SMP, MAC, >etc. The loader and /boot infrastructure has no concept of this. It's >highly important, though. A

Re: Driver Update Disk discussion

2005-02-24 Thread Daniel O'Connor
On Fri, 25 Feb 2005 14:14, M. Warner Losh wrote: > : I think PORTS_MODULES is a little suboptimal.. > > How so? If you upgrade your ports tree and then rebuild your kernel you may upgrade a port KLD without wanting to. > : Fx5200 Go). It also means that the kernel build/install does not result >

Re: Driver Update Disk discussion

2005-02-24 Thread M. Warner Losh
[[ don't cc freebsd-hackers@ and hackers@ ]] In message: <[EMAIL PROTECTED]> "Daniel O'Connor" <[EMAIL PROTECTED]> writes: : On Fri, 25 Feb 2005 12:39, M. Warner Losh wrote: : > One does not need to patch the source tree at to pick up ports modules : > for a kernel rebuild. One can bu

Re: Driver Update Disk discussion

2005-02-24 Thread Daniel O'Connor
On Fri, 25 Feb 2005 12:39, M. Warner Losh wrote: > One does not need to patch the source tree at to pick up ports modules > for a kernel rebuild. One can build the ports modules as part of the > kernel by simply defining PORTS_MODULES in a kernel config file. In > addition, one can specify absolu

Re: Driver Update Disk discussion

2005-02-24 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Scott Long <[EMAIL PROTECTED]> writes: : - runtime support. Where will modules be put, how will they be ensured : to not collide with the base system modules, and how will the system : ensure that they get loaded on every boot. Most of the pieces are in

Re: Driver for Thinkpad Hotkeys.

2004-08-17 Thread Niki Denev
[EMAIL PROTECTED] writes: I updated the driver to be able to change wireless status, by dev.acpi_tpkey.0.bluetooth, dev.acpi_tpkey.0.wlan sysctl value. (WLAN handling may not be correct.) http://www.init-main.com/acpi_tpkey/acpi_tpkey.c In message <[EMAIL PROTECTED]>, Niki Denev wrote: On my X31,

Re: Driver for Thinkpad Hotkeys.

2004-08-17 Thread takawata
I updated the driver to be able to change wireless status, by dev.acpi_tpkey.0.bluetooth, dev.acpi_tpkey.0.wlan sysctl value. (WLAN handling may not be correct.) http://www.init-main.com/acpi_tpkey/acpi_tpkey.c In message <[EMAIL PROTECTED]>, Niki Denev wrote: >On my X31, when i load acpi_tpkey a

Re: Driver for Thinkpad Hotkeys.

2004-08-17 Thread Niki Denev
[EMAIL PROTECTED] writes: Hi, I updated ThinkPad Hotkey driver so that it can * Read Brightness * Read Volume * Read Mute status * Read Keylight status * AccessIBM, Zoom Screen(Fn+Sp) toggle. ToDo lists * Set Brightness * Set Volume * Bluetooth attach/detach. * Userland worker. These features will

Re: Driver for Thinkpad Hotkeys.

2004-08-10 Thread Nate Lawson
Takanori Watanabe wrote: Hi, I updated ThinkPad Hotkey driver so that it can * Read Brightness * Read Volume * Read Mute status * Read Keylight status * AccessIBM, Zoom Screen(Fn+Sp) toggle. ToDo lists * Set Brightness * Set Volume * Bluetooth attach/detach. * Userland worker. These features will c

Re: Driver for Thinkpad Hotkeys.

2004-08-08 Thread Bruce M Simpson
On Mon, Aug 09, 2004 at 04:03:18AM +0200, Arne Schwabe wrote: > IIrc correct the WLAN indicator is wired to the minipci for Thinkpads, > at least the linux madwifi (which is basically our ath driver but our > ath has not been updated for some very long time) has support for the > IBM thinkpad wlan

Re: Driver for Thinkpad Hotkeys.

2004-08-08 Thread Arne Schwabe
[EMAIL PROTECTED] writes: > > * Wireless LAN indicator > > Will be take more time. > IIrc correct the WLAN indicator is wired to the minipci for Thinkpads, at least the linux madwifi (which is basically our ath driver but our ath has not been updated for some very long time) has support for the

Re: [Driver WD1100] Compilation

2004-03-02 Thread Chuck Tuffli
On Tue, Mar 02, 2004 at 06:03:43AM -0500, [EMAIL PROTECTED] wrote: > hello, i've got a question about the driver compilation. I finally wrote > my driver, and i'm trying to compile it to test it. I tryed to use > /usr/share/examples/drivers/make_device_driver.sh to build the whole > stuff, but it d

Re: [Driver] SC1100 watchdog driver

2004-02-25 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "Claudio Martella" <[EMAIL PROTECTED]> writes: : Through the DEV_MODULE() macro i defined the loading routine and : used DRIVER_MODULE() macro to define the pci driver. : My first doubt is if : it's legal to use both of them in the same file/driver. Sho

RE: driver problem without lock held

2003-11-11 Thread John Baldwin
On 11-Nov-2003 Jason wrote: > Here is the error: > > drm0: port 0xa000-0xa0ff mem > 0xec02-0xec02,0xe000-0xe7ff irq 10 at device 0.0 on pci2 > info: [drm] Initialized radeon 1.9.0 20020828 on minor 0 > error: [drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held >

Re: Driver question

2003-11-10 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Bruce M Simpson <[EMAIL PROTECTED]> writes: : Craig, : : On Sat, Nov 08, 2003 at 10:11:22PM -0500, Craig StJean wrote: : > I have a prism2 USB wireless device. I've never written drivers before but I have been developing for the past 8 years. Could some

Re: Driver question

2003-11-10 Thread Bruce M Simpson
Craig, On Sat, Nov 08, 2003 at 10:11:22PM -0500, Craig StJean wrote: > I have a prism2 USB wireless device. I've never written drivers before but I have > been developing for the past 8 years. Could someone guide me to a website or > something that would help me write a USB wrapper for the wi de

Re: Driver vor Watchdog

2003-07-04 Thread Martin Blapp
Hi, >I'm currently developing a driver for this watchdog-card: > 'Antrax WatchCard PCI' -> http://www.antrax.de/ (German) >(btw. Antrax != Anthrax) > >And now I have some questions: > >- Should I develop the driver for 4.x or 5.x or both? Cool ! That depends where do you plan to use it. I supp

Re: Driver for device on serial (COM) port

2002-06-29 Thread Julian Elischer
in -current, we have a new netgraph node ng_device that gives a device interface to netgraph. We also have the ng_tty node that attaches to a tty as a 'line disciplin' adding a node between these to do you own stuff would give you what you want. (the ng_device node shuld be Merged from current s

Re: Driver help

2001-10-31 Thread Wilko Bulte
On Wed, Oct 31, 2001 at 10:37:47AM -0800, Matthew Jacob wrote: > "dumb" is relative and fungible. Sure.. > It's a tradeoff between doing the connection management in firmware (as with > the QLogic) or in the Kernel (as with Tachyon products mostly). It depends on > whom you believe ultimately do

Re: Driver help

2001-10-31 Thread Terry Lambert
Matthew Jacob wrote: > > "dumb" is relative and fungible. > > It's a tradeoff between doing the connection management in firmware (as with > the QLogic) or in the Kernel (as with Tachyon products mostly). It depends on > whom you believe ultimately does a better job. > > Doing it in firmware al

Re: Driver help

2001-10-31 Thread Matthew Jacob
"dumb" is relative and fungible. It's a tradeoff between doing the connection management in firmware (as with the QLogic) or in the Kernel (as with Tachyon products mostly). It depends on whom you believe ultimately does a better job. Doing it in firmware allows the driver writer to manage the

Re: Driver help

2001-10-31 Thread Wilko Bulte
On Wed, Oct 31, 2001 at 09:49:19AM -0800, Matthew Jacob wrote: That is probably what we call the Jaguar in-house. It is (IIRC) a dumb adapter, there is a Tachyon on it for sure. Wilko > Yes, well, there is something Linux called the Compaq Fibre Channel Driver, > and it's not QLogic based- nor

Re: Driver help

2001-10-31 Thread Matthew Jacob
Yes, well, there is something Linux called the Compaq Fibre Channel Driver, and it's not QLogic based- nor is it Emulex based- I believe it's Tachyon- lite. On Wed, 31 Oct 2001, Wilko Bulte wrote: > On Wed, Oct 31, 2001 at 08:08:42AM +0100, Wilko Bulte wrote: > > On Tue, Oct 30, 2001 at 06:04:1

Re: Driver help

2001-10-31 Thread Wilko Bulte
On Wed, Oct 31, 2001 at 08:08:42AM +0100, Wilko Bulte wrote: > On Tue, Oct 30, 2001 at 06:04:16PM -0600, Nick Rogness wrote: > > There is the isp(4) driver, by Matt Jacob, that supports Qlogic > FC HBAs. Further clarifyin this: CPQ use QL2200 for use with Linux. CPQ KGPSA are Emulex LP[78]000,

Re: Driver help

2001-10-30 Thread Wilko Bulte
On Tue, Oct 30, 2001 at 06:04:16PM -0600, Nick Rogness wrote: There is the isp(4) driver, by Matt Jacob, that supports Qlogic FC HBAs. > The company I work for is willing to pay for someone to write a Compaq > Fibe Channel driver for FreeBSD. Please write me personally if you are > interested

Re: Driver structures & alignment

2001-09-15 Thread Warner Losh
In message <[EMAIL PROTECTED]> "David O'Brien" writes: : On Sat, Sep 15, 2001 at 12:13:58PM -0600, Warner Losh wrote: : > In message <[EMAIL PROTECTED]> "David O'Brien" writes: : > : It is best to order this from largest to smallest size if you are worried : > : about alignment holes, etc. : > :

Re: Driver structures & alignment

2001-09-15 Thread Drew Eckhardt
In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: >On Sat, Sep 15, 2001 at 12:13:58PM -0600, Warner Losh wrote: >> unfortunately, there are many device structures that are passed around >> via DMA and hte like that don't let you do this... > >How come? The struct represents some [semi-]p

Re: Driver structures & alignment

2001-09-15 Thread David O'Brien
On Sat, Sep 15, 2001 at 12:13:58PM -0600, Warner Losh wrote: > In message <[EMAIL PROTECTED]> "David O'Brien" writes: > : It is best to order this from largest to smallest size if you are worried > : about alignment holes, etc. > : > : int64_t d; /* 8-byte boundary */ > : int32_t c; /* 4-

Re: Driver structures & alignment

2001-09-15 Thread Warner Losh
In message <[EMAIL PROTECTED]> "David O'Brien" writes: : It is best to order this from largest to smallest size if you are worried : about alignment holes, etc. : : int64_t d; /* 8-byte boundary */ : int32_t c; /* 4-byte boundary */ : int32_t f; /* 4-byte boundary */ : int

Re: Driver structures & alignment

2001-09-15 Thread David O'Brien
On Fri, Sep 14, 2001 at 12:23:44PM +0400, Yar Tikhiy wrote: > E.g., will the following structure: > struct foo { > }; > contain alignment holes in any architecture/compiler? It is best to order this from largest to smallest size if you are worried about alignment holes, etc. int64_t d; /

Re: Driver structures & alignment

2001-09-14 Thread Mike Smith
> In message <[EMAIL PROTECTED]> Mike Smith writes: > : Any form of packing is going to cause problems for items that are > : located in illegal fashions. > > It is almost more appropriate to use bus_space_{read,write} than using > memory mapped structures. The bus macros will work for otherwis

Re: Driver structures & alignment

2001-09-14 Thread Warner Losh
In message <[EMAIL PROTECTED]> Mike Smith writes: : Any form of packing is going to cause problems for items that are : located in illegal fashions. It is almost more appropriate to use bus_space_{read,write} than using memory mapped structures. The bus macros will work for otherwise unaligned

Re: Driver structures & alignment

2001-09-14 Thread Mike Smith
> On Thu, Sep 13, 2001 at 04:09:57PM -0700, Mike Smith wrote: > > > > > > Is there a single blessed way to define packed structures > > > for use in drivers? I suspect that using "#pragma pack(1)" > > > will lead to alignment errors in non-Intel architectures. > > > > Any form of packing is goi

Re: Driver structures & alignment

2001-09-14 Thread Andrew Gallatin
Peter Wemm writes: > The same goes for __format_arg(n) in stdio.h. And so on. We've been pretty > clean about it so far, but a few have slipped through. > That __format_arg, btw, breaks the Compaq CCC compiler & causes us to have to override stdio.h because of just that one line. Does you

Re: Driver structures & alignment

2001-09-14 Thread Peter Wemm
Terry Lambert wrote: > Mike Smith wrote: > > Having said that, I recommend using __attribute__ ((packed)) > > to explicitly request that a structure be packed. > > Is there a problem with "#pragma pack(1)"? I see it in a > lot of header files... do they need changing? Yes, but it should be: #de

Re: Driver structures & alignment

2001-09-14 Thread Terry Lambert
Mike Smith wrote: > Having said that, I recommend using __attribute__ ((packed)) > to explicitly request that a structure be packed. Is there a problem with "#pragma pack(1)"? I see it in a lot of header files... do they need changing? -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] wi

Re: Driver structures & alignment

2001-09-14 Thread Yar Tikhiy
On Thu, Sep 13, 2001 at 04:09:57PM -0700, Mike Smith wrote: > > > > Is there a single blessed way to define packed structures > > for use in drivers? I suspect that using "#pragma pack(1)" > > will lead to alignment errors in non-Intel architectures. > > Any form of packing is going to cause pr

Re: Driver structures & alignment

2001-09-13 Thread Mike Smith
> Hi there, > > Is there a single blessed way to define packed structures > for use in drivers? I suspect that using "#pragma pack(1)" > will lead to alignment errors in non-Intel architectures. Any form of packing is going to cause problems for items that are located in illegal fashions. Hav

Re: Driver structures & alignment

2001-09-13 Thread Brian Somers
> Hi there, > > Is there a single blessed way to define packed structures > for use in drivers? I suspect that using "#pragma pack(1)" > will lead to alignment errors in non-Intel architectures. gcc deals with it, certainly on alpha anyway. However, I don't think anyone would ever bless using

Re: driver: probe not called when smbus child

2001-03-28 Thread Willem van Engen
Nicolas Souchu wrote: > > On Tue, Mar 20, 2001 at 04:50:09PM +0100, Willem van Engen wrote: > > I'm trying to write a module which should be a child of the smbus. > > When I make the driver a child of the isa bus, identify, probe, > > and attach functions are properly called. I use the following >

Re: driver: probe not called when smbus child

2001-03-23 Thread Nicolas Souchu
On Tue, Mar 20, 2001 at 04:50:09PM +0100, Willem van Engen wrote: > I'm trying to write a module which should be a child of the smbus. > When I make the driver a child of the isa bus, identify, probe, > and attach functions are properly called. I use the following > code to do that: > DRIVER_MO

Re: driver: probe not called when smbus child

2001-03-21 Thread Willem van Engen
"Matthew N. Dodd" wrote: > > On Wed, 21 Mar 2001, Willem van Engen wrote: > > DRIVER_MODULE(smb, smbus, smb_driver, smb_devclass, 0, 0); > > so I guess not. But thanks anyway :) > > Yes, but the 'smbus' bus driver doesn't have an attachment to your driver. > > You're trying to create a device t

Re: driver: probe not called when smbus child

2001-03-21 Thread Takanori Watanabe
In message <[EMAIL PROTECTED]>, Willem van Engen $B$5$s$$$o$/(B: >> And you will need to know grandparent device name to bind the device >> collectly.(Or should we need a way to get device attribute such as >> Mother board, Video Capture BitBang,Video Capture Cooked,VGA Card and etc.) >I don't

Re: driver: probe not called when smbus child

2001-03-21 Thread Willem van Engen
Takanori Watanabe wrote: > > In message <[EMAIL PROTECTED]>, Willem van Engen $B$5$s$$$o$/(B: > >I'm trying to write a module which should be a child of the smbus. > >When I make the driver a child of the isa bus, identify, probe, > >and attach functions are properly called. I use the following

Re: driver: probe not called when smbus child

2001-03-21 Thread Matthew N. Dodd
On Wed, 21 Mar 2001, Willem van Engen wrote: > DRIVER_MODULE(smb, smbus, smb_driver, smb_devclass, 0, 0); > so I guess not. But thanks anyway :) Yes, but the 'smbus' bus driver doesn't have an attachment to your driver. You're trying to create a device that provides an 'smbus' right? Or did I

Re: driver: probe not called when smbus child

2001-03-21 Thread Willem van Engen
"Matthew N. Dodd" wrote: > > On Tue, 20 Mar 2001, Willem van Engen wrote: > > > I'm trying to write a module which should be a child of the smbus. > > When I make the driver a child of the isa bus, identify, probe, > > and attach functions are properly called. I use the following > > code to do

Re: driver: probe not called when smbus child

2001-03-20 Thread Matthew N. Dodd
On Tue, 20 Mar 2001, Willem van Engen wrote: > I'm trying to write a module which should be a child of the smbus. > When I make the driver a child of the isa bus, identify, probe, > and attach functions are properly called. I use the following > code to do that: > DRIVER_MODULE(my, isa, my_dri

Re: driver: probe not called when smbus child

2001-03-20 Thread Mike Smith
> I'm trying to write a module which should be a child of the smbus. The smbus probe/attach is broken; you're going to have to fix it before this code will work properly. 8( -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not

Re: driver: probe not called when smbus child

2001-03-20 Thread Takanori Watanabe
In message <[EMAIL PROTECTED]>, Willem van Engen $B$5$s$$$o$/(B: >I'm trying to write a module which should be a child of the smbus. >When I make the driver a child of the isa bus, identify, probe, >and attach functions are properly called. I use the following >code to do that: > DRIVER_MODULE

Re: driver: probe not called when smbus child

2001-03-20 Thread Willem van Engen
It's currently working as an isa-child, but I'm still wondering if it's the 'clean' way, since I only use smbus commands. - Willem Willem van Engen wrote: > > I'm trying to write a module which should be a child of the smbus. > When I make the driver a child of the isa bus, identify, probe, > a

Re: driver for Matrox Meteor II frame grabber

2001-01-29 Thread Rasputin
* Jeff Brooke <[EMAIL PROTECTED]> [010126 21:37]: > My questions are: (i) where, if at all, can I find info/tutorials/examples on >driver-writing with this method? (ii) what are the benefits of the newbus method? >(iii) is it still at all acceptable to write drivers using the old style/method?

Re: driver help

2001-01-24 Thread Dennis
At 10:32 AM 01/24/2001, David Rufino wrote: >* Mike Smith ([EMAIL PROTECTED]) wrote: > > > I am currently trying to port the compatability layer of a linux > > > kernel driver to FreeBSD 4.x. The bit I'm stuck on at the moment > > > is, how do I map arbitrary physical address space to kernel virt

Re: driver help

2001-01-24 Thread David Rufino
* Mike Smith ([EMAIL PROTECTED]) wrote: > > I am currently trying to port the compatability layer of a linux > > kernel driver to FreeBSD 4.x. The bit I'm stuck on at the moment > > is, how do I map arbitrary physical address space to kernel virtual > > address space (ala ioremap() in linux) ? Th

Re: driver help

2001-01-23 Thread Mike Smith
> I am currently trying to port the compatability layer of a linux > kernel driver to FreeBSD 4.x. The bit I'm stuck on at the moment > is, how do I map arbitrary physical address space to kernel virtual > address space (ala ioremap() in linux) ? Thanks. You don't. If this is a PCI device, it's

Re: Driver for Adaptec/Dell/HP PCI:SCSI RAID adapters available

2000-07-24 Thread Mike Smith
> On Sun, 23 Jul 2000, Mike Smith wrote: > > > > These adapters are OEMed by Dell as the PERC 2/QC and by HP as the HP > > > NetRAID-4m. > > FWIW, I've got a plethora of 2450's and 4350's at work... I think some > have the PERC 3, but I'll check tomorrow... and grab any with the PERC > 2 (or

Re: Driver for Adaptec/Dell/HP PCI:SCSI RAID adapters available

2000-07-24 Thread Mike Hoskins
On Sun, 23 Jul 2000, Mike Smith wrote: > > These adapters are OEMed by Dell as the PERC 2/QC and by HP as the HP > > NetRAID-4m. FWIW, I've got a plethora of 2450's and 4350's at work... I think some have the PERC 3, but I'll check tomorrow... and grab any with the PERC 2 (or are the 2/3 mode

Re: Driver for Adaptec/Dell/HP PCI:SCSI RAID adapters available

2000-07-23 Thread Mike Smith
> > The first BETA version of the 'aac' driver for the Adaptec AAC-364 > 'Jalapeno' and AAC-3642 'Jalapeno II' RAID adapters is available from > > http://people.freebsd.org/~msmith/RAID/index.html#adaptec > > These adapters are OEMed by Dell as the PERC 2/QC and by HP as the HP > NetRAID-4m.

Re: driver

2000-07-07 Thread Doug White
On Fri, 7 Jul 2000, Sergio Faustino wrote: > To make the QuickCam (grayscale) work with Windows NT machines you > must install an NT driver. I'd like to know as to get this driver. Ask in a NT forum, then. Doug White| FreeBSD: The Power to Serve [EMAIL PROTECTED] | www