Re: FUD about CGD and GBDE

2005-03-03 Thread Bernd Walter
On Thu, Mar 03, 2005 at 01:18:45PM +0100, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Bernd Walter writes: No matter what disk you take - writes never have been atomic. The major difference I see is that you get a read error back in the disk failure case, while such a crypto

Re: FUD about CGD and GBDE

2005-03-03 Thread Bernd Walter
On Thu, Mar 03, 2005 at 06:51:08PM +0100, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], ALeine writes: [EMAIL PROTECTED] wrote: I gave up on journalling myself because IMO it complicates things a lot and the problem it solves is very very small. If only hardware manufacturers

Re: Advanced USB snooping

2005-02-22 Thread Bernd Walter
On Mon, Feb 21, 2005 at 03:41:01PM +0100, Peter B wrote: Is it possible to program an ordinary (like Intel 82801CA/CAM (ICH3)) USB host controller into acting as an usb device instead? (just like scsi can). Idea: M$Win-Usb - FreeBSD-USB#1 .. software .. FreeBSD-USB#2 - Device No - this

Re: Advanced USB snooping

2005-02-22 Thread Bernd Walter
On Tue, Feb 22, 2005 at 09:00:58PM +0100, Peter B wrote: Is it possible to program an ordinary (like Intel 82801CA/CAM (ICH3)) USB host controller into acting as an usb device instead? (just like scsi can). Idea: M$Win-Usb - FreeBSD-USB#1 .. software .. FreeBSD-USB#2 - Device

Re: ttyd0/cuad0 - why is there still this duality ?

2005-01-24 Thread Bernd Walter
On Mon, Jan 24, 2005 at 09:30:43AM +0100, Christoph P. Kukulies wrote: Just a question. Maybe it isn't true but to me it seems there is still this duality between ttyd and cuad serial devices. Why is that? I'm just asking because someone I was talking with about modems an comm programs was

Re: ATAPI CD changers anybody ?

2005-01-24 Thread Bernd Walter
On Mon, Jan 24, 2005 at 05:36:52PM +0100, Søren Schmidt wrote: Seems I lost my lonely ATAPI CDROM with built in changer to the eternal HW scrapyards, let it rest in peace :) Finding a new one seems difficult so I thought I'd ask around how many still has one of these ? I ask because

Re: configured irq .. is not in bitmap of probed irqs 0 -- what does it mean?

2005-01-24 Thread Bernd Walter
On Mon, Jan 24, 2005 at 08:00:08PM +0300, Andrew L. Neporada wrote: On Sun, Jan 23, 2005 at 09:35:16PM +0100, Bernd Walter wrote: On Sun, Jan 23, 2005 at 01:42:46PM +0300, Andrew L. Neporada wrote: On Sat, Jan 22, 2005 at 02:52:21PM -0700, M. Warner Losh wrote: Chances are you don't

Re: ttyd0/cuad0 - why is there still this duality ?

2005-01-24 Thread Bernd Walter
On Mon, Jan 24, 2005 at 12:42:50PM -0500, Kurt J. Lidl wrote: On Mon, Jan 24, 2005 at 04:16:13PM +0100, Bernd Walter wrote: On Mon, Jan 24, 2005 at 09:30:43AM +0100, Christoph P. Kukulies wrote: Just a question. Maybe it isn't true but to me it seems there is still this duality between

Re: ttyd0/cuad0 - why is there still this duality ?

2005-01-24 Thread Bernd Walter
On Mon, Jan 24, 2005 at 11:13:26AM -0800, Sam Leffler wrote: Bernd Walter wrote: On Mon, Jan 24, 2005 at 12:42:50PM -0500, Kurt J. Lidl wrote: On Mon, Jan 24, 2005 at 04:16:13PM +0100, Bernd Walter wrote: On Mon, Jan 24, 2005 at 09:30:43AM +0100, Christoph P. Kukulies wrote: Yes

Re: configured irq .. is not in bitmap of probed irqs 0 -- what does it mean?

2005-01-23 Thread Bernd Walter
On Sun, Jan 23, 2005 at 01:42:46PM +0300, Andrew L. Neporada wrote: On Sat, Jan 22, 2005 at 02:52:21PM -0700, M. Warner Losh wrote: Chances are you don't have things configured quite correctly in the bios. The interrupts aren't asserting proplerly. Interrupts 3,4,10,11 are reserved for

Re: Geode integrated peripherals support?

2005-01-21 Thread Bernd Walter
On Fri, Jan 21, 2005 at 06:52:41AM +0100, Milan Obuch wrote: On Friday 21 January 2005 00:51, John-Mark Gurney wrote: Milan Obuch wrote this message on Wed, Jan 19, 2005 at 10:00 +0100: [skip] Great, could we cooperate? Sure, though Joerg Wunsch has been doing work w/ I2C more

Re: device id question (usb and scsi)

2005-01-20 Thread Bernd Walter
On Thu, Jan 20, 2005 at 10:59:39AM +0100, Bram Van Steenlandt wrote: Hi, I've been having some problems with the following: ex1: I have two scsi scanners and I use sane to scan all works well my two scanners are /dev/pass0 and /dev/pass1 however when one of them is turned of the device

Re: Networking Two Computers via USB

2004-12-31 Thread Bernd Walter
On Thu, Dec 30, 2004 at 10:36:07PM -0800, Douglas Allen wrote: Hi hackers, I am interested in connecting my Linux machine to my windows XP machine. Neither Linux nor Windows is FreeBSD, why do you ask in a FreeBSD list? I was going to try the USB ports first. Now I've opened a can

Re: Multiple hard disk failures - coincidence ?

2004-12-18 Thread Bernd Walter
On Sat, Dec 18, 2004 at 08:17:39PM +1100, Peter Jeremy wrote: On Sat, 2004-Dec-18 02:03:09 -0500, Gary Corcoran wrote: I suppose it is possible these errors may have shown up more than a week or two ago, because my windows machines, reaching them via samba, haven't shown any problems until

Re: Multiple hard disk failures - coincidence ?

2004-12-18 Thread Bernd Walter
On Sun, Dec 19, 2004 at 08:07:20AM +1100, Peter Jeremy wrote: On Sat, 2004-Dec-18 20:59:11 +0100, Bernd Walter wrote: On Sat, Dec 18, 2004 at 08:17:39PM +1100, Peter Jeremy wrote: My approach to this is to add a line similar to dd if=/dev/ad0 of=/dev/null bs=32k for each disk into /etc

Re: tcsh fix

2004-11-12 Thread Bernd Walter
On Fri, Nov 12, 2004 at 09:50:05AM -0800, Paul Armstrong wrote: On Fri, Nov 12, 2004 at 05:05:28PM +0100, Erik Trulsson wrote: This is to provide compatibility whn working with multiple versions of Unix. I write many scripts in sh on Solaris, and find they just don't work on Linux

Re: attaching ugen(4) on multi interface USB devices

2004-10-07 Thread Bernd Walter
On Thu, Oct 07, 2004 at 04:22:12PM +0300, Niki Denev wrote: Bernd Walter writes: On Wed, Oct 06, 2004 at 03:30:05PM +0300, Niki Denev wrote: If you already an interface driver atatched then ugen fails to attach the whole device. well, i think that this can be a problem sometimes. Yes

Re: attaching ugen(4) on multi interface USB devices

2004-10-06 Thread Bernd Walter
On Wed, Oct 06, 2004 at 03:30:05PM +0300, Niki Denev wrote: Hello everyone!, The last 1-2 days i've been trying to make some userspace OBEX utilities to work with a USB based Nokia GSM phone and doing this i discovered something that confuses me a little: The phone in question is Nokia

Re: Controlling the Serial port

2004-07-07 Thread Bernd Walter
On Tue, Jul 06, 2004 at 10:53:23PM -0400, Greg Hormann wrote: I'm working to develop a communications program to control a piece of vendor supplied hardware. (They only provide a control program for Windows.) I think I'm close. The device uses a RS-232 - RS-485 convert which I belive is

Re: USB driver selection algorithm?

2004-07-01 Thread Bernd Walter
On Wed, Jun 30, 2004 at 07:04:44PM +0400, Alex K wrote: Hello, everyone! As far as I understand drivers for USB devices are selected and attached based on USB VendorID and ProductID match. Here I have situation where I have 2 diffrent USB devices (cables) which got same Vendor and Device

Re: uplcom.c changes (was: USB driver selection algorithm?)

2004-07-01 Thread Bernd Walter
On Thu, Jul 01, 2004 at 06:05:55PM +0400, Alex K wrote: Hello! Bernd Walter wrote: uplcom takes devices (or maybe interfaces) based on vendor/product ID. What approach will you recommend? What is your problem? 2 different USB devices with same vendor/product ID, only revision

Re: usb probs ehci works vs uhci hangs with Linksys usb200M ( axe0 )

2004-05-14 Thread Bernd Walter
On Fri, May 14, 2004 at 03:59:27AM +, mark wrote: I'm looking for a work around to this usb ethernet problem. With FreeBSD-5.2.1-p5, device ehci added to the default GENERIC kernel, the axe device works fine in USB 2.0 mode, when plugged in after boot (AFTER ehci driver is

Re: USB device driver question: timeout() and usbd_do_request()

2004-05-03 Thread Bernd Walter
On Sun, May 02, 2004 at 10:38:42AM -0400, Rita Lin wrote: Hello, I'm writing a USB driver for a device that does not have any interrupt. It only has Bulk-in and Bulk-out. A periodic polling status from default pipe is required to have a smooth data transfer. I used timeout() routine to

Re: USB device driver question: timeout() and usbd_do_request()

2004-05-03 Thread Bernd Walter
On Mon, May 03, 2004 at 04:37:22PM -0400, Rita Lin wrote: But I don't understand the whole issue you have. Just schedule a request and wait for the device to ack. The Host controller does the polling for you as long as the request is queued and the timeout value supplied with the request

Re: USB device driver question: timeout() and usbd_do_request()

2004-05-03 Thread Bernd Walter
On Mon, May 03, 2004 at 06:48:14PM -0400, Rita Lin wrote: That is what I call a bad design. You waste resources because the device designer did not take the features he had available. Okay, I guess so. There are also other minor things that I don't understand why the device is implemented

Re: USB device driver question: timeout() and usbd_do_request()

2004-05-03 Thread Bernd Walter
On Mon, May 03, 2004 at 05:36:47PM -0400, Rita Lin wrote: Igh - that sounds like a very bad device design then. There would have been lots a ways to do in a clean way without additional pipes - such as transfering 0 sized packets to trigger a status inquiry or by adding status bytes in

Re: Detecting 'floppy' like umass devices

2004-04-21 Thread Bernd Walter
On Wed, Apr 21, 2004 at 01:29:29PM +0930, Daniel O'Connor wrote: On Tue, 20 Apr 2004 18:28, Bernd Walter wrote: I am wondering if there is any way of telling if a given umass device is a floppy drive (or wants to look like one) - eg I have a USB FDD which I imagine should fall

Re: Detecting 'floppy' like umass devices

2004-04-20 Thread Bernd Walter
On Mon, Apr 19, 2004 at 10:47:48PM +0930, Daniel O'Connor wrote: A friend of mine handed me a USB flash key today that has 2 'partition' - one 1.44Mb chunk pretends to be a floppy drive and the rest is a normal umass device. I am wondering if there is any way of telling if a given umass

Re: polling for sio?

2004-04-09 Thread Bernd Walter
On Thu, Apr 08, 2004 at 12:34:43PM -0600, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Marcel Moolenaar [EMAIL PROTECTED] writes: : On Wed, Apr 07, 2004 at 03:36:02PM -0700, othermark wrote: : I have a multi-port PCI card under puc and sio that has 4 19200 : connections

Re: polling for sio?

2004-04-09 Thread Bernd Walter
On Fri, Apr 09, 2004 at 02:01:56PM -0400, Louis A. Mamakos wrote: Those cards are just what they are - cheap. They have very small FIFOs and they don't use DMA. IRQ sharing makes them even worse than traditional ISA stuff. My advise for cost efficient and fast serials is getting USB ones.

Re: usbd config file parse behaviour

2004-03-31 Thread Bernd Walter
On Wed, Mar 31, 2004 at 09:32:11AM -0700, M. Warner Losh wrote: : I agree that it's bad to yank a device from under ugen automatically and : reattach it to a better match. I think it is good. Really. However, ugen should mark the device busy when it is opened, and mark it as unbusy as

Re: usbd config file parse behaviour

2004-03-30 Thread Bernd Walter
On Mon, Mar 29, 2004 at 07:44:34PM -0700, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Sam Lawrance [EMAIL PROTECTED] writes: : On Sun, 2004-03-28 at 20:47, Bernd Walter wrote: : On Sun, Mar 28, 2004 at 01:31:03AM -0700, M. Warner Losh wrote: : Btw, any interest

Re: usbd config file parse behaviour

2004-03-30 Thread Bernd Walter
On Tue, Mar 30, 2004 at 01:46:32AM -0700, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bernd Walter [EMAIL PROTECTED] writes: : On Mon, Mar 29, 2004 at 07:44:34PM -0700, M. Warner Losh wrote: : In message: [EMAIL PROTECTED] : Sam Lawrance [EMAIL PROTECTED

Re: usbd config file parse behaviour

2004-03-28 Thread Bernd Walter
On Sun, Mar 28, 2004 at 01:31:03AM -0700, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bernd Walter [EMAIL PROTECTED] writes: : On Sat, Mar 27, 2004 at 04:55:56PM -0700, M. Warner Losh wrote: : In message: [EMAIL PROTECTED] : Bernd Walter [EMAIL PROTECTED

Re: Problem with usb in FreeBSD 4.8....help!!!

2004-03-28 Thread Bernd Walter
On Sun, Mar 28, 2004 at 02:51:56AM -0800, jitendra pande wrote: Hi, I have stuck with a problem with usb devices. In case of FreeBSD 4.8, whenever a new USB device is attached to the system, no device node is dynamically being created within the dev file system. This is in contrast

Re: usbd config file parse behaviour

2004-03-27 Thread Bernd Walter
On Sat, Mar 27, 2004 at 04:55:56PM -0700, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bernd Walter [EMAIL PROTECTED] writes: : I'm working on getting devd(8) usable for usb devices. The part I'm not sure about is where you add the pnpinfo to the devaddq stuff. All

Re: usbd config file parse behaviour

2004-03-25 Thread Bernd Walter
On Fri, Mar 26, 2004 at 10:27:39AM +1100, Sam Lawrance wrote: Hi, usbd's present behaviour when reading usbd.conf is to scan from top to bottom and use the first match. What if it was changed to use the last, most specific match? That is, the last match with the most of (product, vendor)

Re: Firewire tape drives

2004-03-16 Thread Bernd Walter
On Wed, Mar 17, 2004 at 02:43:57PM +0900, Katsushi Kobayashi wrote: If the device works with SBP-II protocol, I believe it will work on CAM framework as usual SCSI device. umass(4) should work for USB as well. On 2004/03/17, at 14:39, Daniel O'Connor wrote: Hi, Does anyone have any? Do

Re: How to write a new line discipline?

2004-03-16 Thread Bernd Walter
On Tue, Mar 16, 2004 at 04:29:04PM +1030, Daniel O'Connor wrote: Hi, My company uses RS485 to talk to various pieces of hardware, and currently to do this we have a hacked up copy of sio which talks to a conventional RS485 card, while this works well it would be nicer to be able to use

Re: how to get cpu states more than once a second?

2004-03-03 Thread Bernd Walter
On Wed, Mar 03, 2004 at 07:57:24PM +1100, Peter Jeremy wrote: On Wed, Mar 03, 2004 at 07:27:31AM +0100, Bernd Walter wrote: Currently I get the states via kern.cp_time, but this only allows a granularity of a single second and I need something around 50-100ms. As far as I can tell - both

how to get cpu states more than once a second?

2004-03-02 Thread Bernd Walter
Currently I get the states via kern.cp_time, but this only allows a granularity of a single second and I need something around 50-100ms. Application is a LED bargraph which doesn't have the intended effect with just a single update per second. -- B.Walter BWCT

kernel level tty question

2004-02-26 Thread Bernd Walter
I noticed with a self build serial driver that I'm not allowed to put data into a tty that is not opened. I had to learn this the hard way and would like to know if there are other points that I'm not aware of. Is there any good documentation about kernel tty programming available? -- B.Walter

Re: OT: tftp server

2004-02-24 Thread Bernd Walter
On Tue, Feb 24, 2004 at 07:09:18PM +0800, Ganbold wrote: Hi all, Maybe this is off topic question. I'm looking for good tftp server in FreeBSD. I used default tftp server in FreeBSD and had some problems. It sometimes hangs without any response. I think debugging info (e.g. tcpdump)

Re: Subversion/CVS experiment summary

2004-02-13 Thread Bernd Walter
On Thu, Feb 12, 2004 at 04:48:25PM -0400, Marc G. Fournier wrote: note that this was pre-0.34, but since its still under development, there is always the chance that this happens again ... a load of the system took 49hrs, I believe was mentioned ... how long to dump/reload the system once its

Re: PCI interrupt allocation question..

2004-01-16 Thread Bernd Walter
On Tue, Jan 13, 2004 at 04:14:10PM -0800, Julian Elischer wrote: On Wed, 14 Jan 2004, Stijn Hoop wrote: On Tue, Jan 13, 2004 at 03:26:00PM -0800, Julian Elischer wrote: The kernel includes teh ichsmb driver to try access the SMBus for temperature reading reasons (yes I know I can

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-08 Thread Bernd Walter
On Thu, Jan 08, 2004 at 01:58:11AM -0600, Matthew D. Fuller wrote: On Wed, Jan 07, 2004 at 11:50:59PM -0800 I heard the voice of Avleen Vig, and lo! it spake thus: While it is indeed true that most machines since 1997 will support this CD format, please take in to account: And,

Re: USB stack / configuration 0

2004-01-07 Thread Bernd Walter
On Wed, Jan 07, 2004 at 05:34:05PM +1030, Daniel O'Connor wrote: On Wednesday 07 January 2004 17:08, Bernd Walter wrote: I don't think it IS a dumb device, there is a USB spec called DFU which covers it and the hosts job is to do the reenumeration. Sparing a transistor to offload

Re: rcng guru needed

2004-01-07 Thread Bernd Walter
On Wed, Jan 07, 2004 at 01:05:57PM +0200, Danny Braniss wrote: after all my confusions, my problem was solved once netif was made executable. It's always one of those inconspicuous details :) -- B.Walter BWCThttp://www.bwct.de [EMAIL PROTECTED]

Re: USB stack / configuration 0

2004-01-07 Thread Bernd Walter
On Wed, Jan 07, 2004 at 11:04:37AM +0100, Daan Vreeken [PA4DAN] wrote: For the device this means having to switch the ROM image with the RAM image which is impossible while running in the specific processor. Thus the processor tells it's core to map RAM into code-space and resets itself.

Re: rcng guru needed

2004-01-06 Thread Bernd Walter
On Tue, Jan 06, 2004 at 01:55:41PM +0200, Danny Braniss wrote: while hunting down the problem that my diskless configuration is not starting the loopback interface i came about the following: Mmmm - everythings OK for me: [51]cicely14# ifconfig lo0 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST

Re: USB stack / configuration 0

2004-01-06 Thread Bernd Walter
On Wed, Jan 07, 2004 at 04:05:15PM +1030, Daniel O'Connor wrote: On Tuesday 06 January 2004 18:47, Bernd Walter wrote: When setting a USB device to configuration number USB_UNCONFIG_NO (i.e. 0), the device goes into an unconfigured state with an invalid dev-cdesc. How does one then leave

Re: USB stack / configuration 0

2004-01-06 Thread Bernd Walter
On Wed, Jan 07, 2004 at 04:44:46PM +1030, Daniel O'Connor wrote: On Wednesday 07 January 2004 16:35, Bernd Walter wrote: Bad device - it would have been so easy add an single transitor to do this automaticaly. Nevertheless USB_UNCONFIG_NO can't help you here. What you need to do

Re: Unprobed PCI bus on VXPro II chipset

2003-12-26 Thread Bernd Walter
On Fri, Dec 26, 2003 at 10:54:27AM -0800, Sean Welch wrote: That change seems to have done it!! I left in the extra PCI IDs I had added to pcisupport.c and pci_cfgreg.c -- looks like that helps get things going. I've got options PCI_ENABLE_IO_MODES in the kernel. I've also got device puc

Re: usb 2.0 dell inspirion 8500

2003-12-20 Thread Bernd Walter
On Sat, Dec 20, 2003 at 03:17:18PM -0500, David Gilbert wrote: Bernd == Bernd Walter [EMAIL PROTECTED] writes: Bernd On Fri, Nov 21, 2003 at 03:10:10PM -0600, [EMAIL PROTECTED] Bernd wrote: Should device ehci be a default in GENERIC, then? Bernd It is intentionally not in GENERIC

Re: USB Question: unable to open /dev/ugen0 more than once

2003-11-24 Thread Bernd Walter
On Sun, Nov 23, 2003 at 08:50:45PM -0500, Michael E. Mercer wrote: Hello peoples, I posted this to questions with no reply, I was hoping someone here may be able to give some insight. Question: Should I be able to open /dev/ugen0 more than once? I am using FreeBSD 4.9-Stable,

Re: usb 2.0 dell inspirion 8500

2003-11-21 Thread Bernd Walter
On Fri, Nov 21, 2003 at 10:47:35AM -0600, [EMAIL PROTECTED] wrote: I recently got a usb 2.0 hard drive to which I painfully wait for 1MB/s transfers. According to dmesg fbsd is only doing 1.0: usb0: Intel 82801DB (ICH4) USB controller USB-A on uhci0 usb0: USB revision 1.0 usb1: Intel

Re: usb 2.0 dell inspirion 8500

2003-11-21 Thread Bernd Walter
On Fri, Nov 21, 2003 at 03:10:10PM -0600, [EMAIL PROTECTED] wrote: Should device ehci be a default in GENERIC, then? It is intentionally not in GENERIC. On Fri, 21 Nov 2003, Bernd Walter wrote: On Fri, Nov 21, 2003 at 10:47:35AM -0600, [EMAIL PROTECTED] wrote: I recently got a usb 2.0

Re: usb 2.0 dell inspirion 8500

2003-11-21 Thread Bernd Walter
is more speed with less functionality. On Fri, 21 Nov 2003, Bernd Walter wrote: On Fri, Nov 21, 2003 at 03:10:10PM -0600, [EMAIL PROTECTED] wrote: Should device ehci be a default in GENERIC, then? It is intentionally not in GENERIC. On Fri, 21 Nov 2003, Bernd Walter wrote

Re: smallest piece of hardware that runs *BSD?

2003-10-12 Thread Bernd Walter
On Sun, Oct 12, 2003 at 01:19:44PM +0200, Dag-Erling Smørgrav wrote: Bernd Walter [EMAIL PROTECTED] writes: On Sat, Oct 11, 2003 at 03:06:18PM +1000, John Birrell wrote: Here's one the size of a credit card: http://www.compulab.co.il/586core.htm. It's a lot bigger than a 'bump in a cable

Re: setting sio to even parity failed

2003-10-11 Thread Bernd Walter
On Fri, Oct 10, 2003 at 08:33:46PM +0200, Bernd Walter wrote: On Fri, Oct 10, 2003 at 01:26:33PM -0500, Dan Nelson wrote: In the last episode (Oct 10), Bernd Walter said: buf.c_iflag |= IGNBRK; buf.c_cflag = ~(CSIZE | PARODD); buf.c_cflag |= CS8 | CLOCAL

Re: setting sio to even parity failed

2003-10-11 Thread Bernd Walter
On Sat, Oct 11, 2003 at 03:17:13PM -0600, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bernd Walter [EMAIL PROTECTED] writes: : On Fri, Oct 10, 2003 at 01:26:33PM -0500, Dan Nelson wrote: : In the last episode (Oct 10), Bernd Walter said: : buf.c_iflag |= IGNBRK

Re: smallest piece of hardware that runs *BSD?

2003-10-11 Thread Bernd Walter
On Sat, Oct 11, 2003 at 03:06:18PM +1000, John Birrell wrote: On Fri, Oct 10, 2003 at 04:17:37PM +0200, C. Kukulies wrote: Now, we are not far from that. I'm thinking of some CPU with TP Ethernet and memory of size of an USB stick. Anyone knowing such or having experience? Here's one

setting sio to even parity failed

2003-10-10 Thread Bernd Walter
void opensio(char* devname) { struct termios buf; int val; fd = open(devname, O_RDWR); if (fd 0) { printf(open serial %s failed: %s\n, devname, strerror(errno)); exit(1); } val =

Re: setting sio to even parity failed

2003-10-10 Thread Bernd Walter
On Fri, Oct 10, 2003 at 01:26:33PM -0500, Dan Nelson wrote: In the last episode (Oct 10), Bernd Walter said: buf.c_iflag |= IGNBRK; buf.c_cflag = ~(CSIZE | PARODD); buf.c_cflag |= CS8 | CLOCAL | PARENB; Do you maybe want CS7 here? No I need 8e1, but the output

Re: Dynamic reads without locking.

2003-10-09 Thread Bernd Walter
On Thu, Oct 09, 2003 at 07:37:42PM +1000, Peter Jeremy wrote: On Wed, Oct 08, 2003 at 11:51:06AM +0200, Harti Brandt wrote: You need to lock when reading if you insist on consistent data. Even a simple read may be non-atomic (this should be the case for 64bit operations on all our platforms).

Re: Dynamic reads without locking.

2003-10-08 Thread Bernd Walter
On Wed, Oct 08, 2003 at 12:12:22PM +0200, Pawel Jakub Dawidek wrote: On Wed, Oct 08, 2003 at 11:51:06AM +0200, Harti Brandt wrote: + You need to lock when reading if you insist on consistent data. Even a + simple read may be non-atomic (this should be the case for 64bit + operations on all our

Re: Dynamic reads without locking.

2003-10-08 Thread Bernd Walter
On Wed, Oct 08, 2003 at 02:11:12PM +0200, Harti Brandt wrote: On Wed, 8 Oct 2003, Bernd Walter wrote: BWOn Wed, Oct 08, 2003 at 12:12:22PM +0200, Pawel Jakub Dawidek wrote: BW But I'm not talking about non-atomic reads. What I'm want to show is that BW even atomic read (without lock

Re: Dynamic reads without locking.

2003-10-08 Thread Bernd Walter
On Wed, Oct 08, 2003 at 02:58:02PM +0200, Harti Brandt wrote: uint8_t foo; (guaranteeing that the data type itself is atomic). But if a writer sets foo as above and you read foo without locking, you might get a wrong value: mtx_lock(...) foo = 77; -

Re: total hang when cu -l /dev/cuaa0

2003-10-04 Thread Bernd Walter
On Sat, Oct 04, 2003 at 10:25:48AM +0200, Christoph P. Kukulies wrote: On Fri, Oct 03, 2003 at 11:36:29PM +0200, Bernd Walter wrote: You can't expect anything reliable from a device which is broken. The kernel already warned you that something seems to be questionable. In the same way you

Re: total hang when cu -l /dev/cuaa0

2003-10-03 Thread Bernd Walter
On Fri, Oct 03, 2003 at 08:21:28PM +0200, C. Kukulies wrote: I have disabled the SIO on my ASUS P4SX board because I have a PCI modem card inserted. But the modem card or the sio on it doesn't seem to be detected by the kernel. Instead I see two sios (sio0 and sio1) which are flagged as

Re: total hang when cu -l /dev/cuaa0

2003-10-03 Thread Bernd Walter
On Fri, Oct 03, 2003 at 11:23:34PM +0200, Christoph P. Kukulies wrote: On Fri, Oct 03, 2003 at 10:15:08PM +0200, Bernd Walter wrote: On Fri, Oct 03, 2003 at 08:21:28PM +0200, C. Kukulies wrote: I have disabled the SIO on my ASUS P4SX board because I have a PCI modem card inserted

Re: USB2.0 external hub and ehci question

2003-09-30 Thread Bernd Walter
On Tue, Sep 30, 2003 at 05:26:33AM +0200, Barry Bouwsma wrote: [Drop hostname part of IPv6-only address above to obtain IPv4-capable e-mail, or just drop me from the recipients and I'll catch up from the archives] Hallo Hackers, I suppose I should post this to -current as the code in

Re: PCI bridges interrupts

2003-09-25 Thread Bernd Walter
On Wed, Sep 24, 2003 at 06:17:43PM -0400, John Baldwin wrote: On 24-Sep-2003 M. Warner Losh wrote: You might want to make sure that you have an up to date stable. There was a fix to the PCI bridge interrupt swizzle. Ah yes, that's true. However, it doesn't seem that his interrupt is

Re: USB card overcurrent problems...

2003-09-24 Thread Bernd Walter
On Wed, Sep 24, 2003 at 06:32:42PM +0200, Barry Bouwsma wrote: [Drop hostname part of IPv6-only address above to obtain IPv4-capable e-mail, or just drop me from the recipients and I'll catch up from the archives] Hello every last one of you, First, before I spout off in the wrong

Re: Gaps in memory usage summary!?

2003-09-20 Thread Bernd Walter
On Fri, Sep 19, 2003 at 11:11:39PM +0200, Ralf S. Engelschall wrote: -- FreeBSD-5.1-CURRENT/alpha SYSTEM MEMORY INFORMATION: mem_wire: 32555008 ( 31MB) [ 12%] Wired: disabled for paging out mem_active:

How to get a device_t

2003-08-14 Thread Bernd Walter
I need to add I2C support for a Elan520 based soekris system. The system has the required GPIO pins and there is the iicbb driver to handle generic bitbang code - just needing a simple layer driver to enable, disable and read pins. But unlike normal isa/pci hardware probing the existence of the

Re: How to get a device_t

2003-08-14 Thread Bernd Walter
On Wed, Aug 06, 2003 at 05:52:57PM -0600, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bernd Walter [EMAIL PROTECTED] writes: : Back to the original question: : How do I get the device_t from nexus? You don't. You are assigned one. : Is there a get_nexus() function

Re: How to get a device_t

2003-08-14 Thread Bernd Walter
On Fri, Aug 08, 2003 at 04:32:43PM -0400, John Baldwin wrote: On 08-Aug-2003 Bernd Walter wrote: On Fri, Aug 08, 2003 at 03:48:22PM -0400, John Baldwin wrote: On 08-Aug-2003 Bernd Walter wrote: On Fri, Aug 08, 2003 at 02:27:30PM -0400, John Baldwin wrote: Well, that would

Re: How to get a device_t

2003-08-14 Thread Bernd Walter
On Wed, Aug 06, 2003 at 07:27:42PM -0600, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bernd Walter [EMAIL PROTECTED] writes: : The host bridge is not available yet at probing time of the host bridge. : What we have is the host bridges parent (nexus) in the calling function

Re: How to get a device_t

2003-08-14 Thread Bernd Walter
On Fri, Aug 08, 2003 at 06:03:38PM +1000, John Birrell wrote: On Fri, Aug 08, 2003 at 09:44:08AM +0200, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], John Birrell writes : I'm not convinced that any hacking is required other than passing the device_t parent to

Re: How to get a device_t

2003-08-14 Thread Bernd Walter
On Fri, Aug 08, 2003 at 03:48:22PM -0400, John Baldwin wrote: On 08-Aug-2003 Bernd Walter wrote: On Fri, Aug 08, 2003 at 02:27:30PM -0400, John Baldwin wrote: Well, that would be a major pain on current since nexus is already finished attaching many of its drivers by the time it gets

Re: How to get a device_t

2003-08-14 Thread Bernd Walter
On Wed, Aug 06, 2003 at 06:37:10PM -0600, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bernd Walter [EMAIL PROTECTED] writes: : On Wed, Aug 06, 2003 at 05:52:57PM -0600, M. Warner Losh wrote: : In message: [EMAIL PROTECTED] : Bernd Walter [EMAIL PROTECTED

Re: How to get a device_t

2003-08-14 Thread Bernd Walter
On Wed, Aug 06, 2003 at 08:39:37PM -0600, M. Warner Losh wrote: In message: [EMAIL PROTECTED] John Birrell [EMAIL PROTECTED] writes: : On Wed, Aug 06, 2003 at 07:45:32PM -0600, M. Warner Losh wrote: : The SC520 has onboard support to control 3 flash chips. : The board I have has 2

Re: How to get a device_t

2003-08-10 Thread Bernd Walter
On Wed, Aug 06, 2003 at 03:34:01PM -0400, Eric Jacobs wrote: On Wed, 6 Aug 2003 13:00:13 +0200 Bernd Walter [EMAIL PROTECTED] wrote: Back to the original question: How do I get the device_t from nexus? Is there a get_nexus() function somewhere? You can do it this way: devclass_t

Re: How to get a device_t

2003-08-10 Thread Bernd Walter
On Wed, Aug 06, 2003 at 12:45:43PM +0200, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Bernd Walter writes: On Wed, Aug 06, 2003 at 12:18:28PM +0200, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Bernd Walter writes: From the logicaly standpoint the extensions had

Re: How to get a device_t

2003-08-09 Thread Bernd Walter
On Fri, Aug 08, 2003 at 04:32:43PM -0400, John Baldwin wrote: On 08-Aug-2003 Bernd Walter wrote: On Fri, Aug 08, 2003 at 03:48:22PM -0400, John Baldwin wrote: On 08-Aug-2003 Bernd Walter wrote: However - I would still like to know why device_add_child(nexus, elanbb, -1); results

Re: How to get a device_t

2003-08-09 Thread Bernd Walter
On Sat, Aug 09, 2003 at 01:38:05PM +0200, Bernd Walter wrote: After adding you patch and some includes (machine/pci_cfgreg.h, dev/pci/pcireg.h) [...] pci_open(1):mode 1 addr port (0x0cf8) is 0x pci_open(1a): mode1res=0x8000 (0x8000) pci_cfgcheck: device 0 [class

Re: porting a webcam

2003-08-09 Thread Bernd Walter
On Fri, Aug 08, 2003 at 07:56:26AM -0700, Paulo Roberto wrote: Hello, I am about to code my first kmod. I am trying to port an usb camera to FreeBSD, and since I am new at system development, I hope you don't mind helping me out. If this is not the correct list I should post, please point

Re: How to get a device_t

2003-08-08 Thread Bernd Walter
On Fri, Aug 08, 2003 at 02:27:30PM -0400, John Baldwin wrote: On 08-Aug-2003 Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], John Birrell writes : I'm not convinced that any hacking is required other than passing the device_t parent to nexus_pcib_is_host_bridge (in STABLE) as

Re: How to get a device_t

2003-08-06 Thread Bernd Walter
On Wed, Aug 06, 2003 at 12:18:28PM +0200, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Bernd Walter writes: I need to add I2C support for a Elan520 based soekris system. The system has the required GPIO pins and there is the iicbb driver to handle generic bitbang code - just needing

Re: differences in USB support between FreeBSD 4.x and 5.x ?

2003-07-22 Thread Bernd Walter
On Tue, Jul 22, 2003 at 12:04:21AM +0200, Daan Vreeken [PA4DAN] wrote: On Monday 21 July 2003 15:00, Bernd Walter wrote: On Mon, Jul 21, 2003 at 09:18:42AM +0200, Marco Molteni wrote: [I sent the same message to [EMAIL PROTECTED], but since that list seems not very active, I am asking

Re: differences in USB support between FreeBSD 4.x and 5.x ?

2003-07-21 Thread Bernd Walter
On Mon, Jul 21, 2003 at 09:18:42AM +0200, Marco Molteni wrote: [I sent the same message to [EMAIL PROTECTED], but since that list seems not very active, I am asking here too] Hi all, the subject says it all. I am considering using FreeBSD for a robotics project, and I am thinking of

Re: NetApp and 'nfs send error 32'

2003-07-10 Thread Bernd Walter
On Thu, Jul 10, 2003 at 10:12:36AM +0300, Danny Braniss wrote: hi all, googling shows this not to be anything new, but ... it happend when we enabled tcp/nfs on our NetApp fileservers. so the question is: 1- is it serious - it doesn't seem so ... 2- can it be ignored?

Re: USB, select/poll for ucom

2003-06-28 Thread Bernd Walter
On Sat, Jun 28, 2003 at 12:37:10PM +0300, Danny Braniss wrote: [...] have fun. the mindshare book is good. however, it took me a long time to get a usb 'aha' moment and understand its twisty maze was really a workable design obscured by standardese... I suspect it is a problem in the

Re: USB, select/poll for ucom

2003-06-25 Thread Bernd Walter
On Wed, Jun 25, 2003 at 01:13:56PM +0300, Danny Braniss wrote: hi, while trying to port an application that works with tty to uplcom/ucom, (and it doesn't work :-), and looking at the kernel sources and trying to figure out USB, i think that select(2)/poll(2) will not work, correct?

Re: USB, select/poll for ucom

2003-06-25 Thread Bernd Walter
On Wed, Jun 25, 2003 at 03:27:30PM +0300, Danny Braniss wrote: On Wed, Jun 25, 2003 at 01:13:56PM +0300, Danny Braniss wrote: hi, while trying to port an application that works with tty to uplcom/ucom, (and it doesn't work :-), and looking at the kernel sources and trying to figure

Re: USB, select/poll for ucom

2003-06-25 Thread Bernd Walter
On Wed, Jun 25, 2003 at 02:58:28PM -0400, Louis A. Mamakos wrote: I think the problem is that the USB hardware doesn't try to read data from the peripheral until the user-mode code does a read(2) system call. I had this problem with the ugen device. I would guess that the ucom/umodem devices

Re: problem with UMASS

2003-06-13 Thread Bernd Walter
On Fri, Jun 13, 2003 at 05:45:12PM +0200, Antoine Jacoutot wrote: Hi ! I'm using a USB adapter to plug a HDD into my FreeBSD-4.8 box. If I boot with the device pluged-in, it works fine, but if I plug it in after boot or unplug then replug it, it doesn't work anymore (I get timeout

Re: ugen example

2003-06-12 Thread Bernd Walter
On Thu, Jun 12, 2003 at 11:30:28PM +1000, Andrew wrote: On Sun, 8 Jun 2003, Bernd Walter wrote: If you have no /dev/ugen?.? then the device has no other endpoints in its current configuration. The usbctl tool mentioned above is good to check devices about their capabilities. usbctl

Re: ugen example

2003-06-12 Thread Bernd Walter
On Thu, Jun 12, 2003 at 11:47:55PM +1000, Andrew wrote: On Thu, 12 Jun 2003, Bernd Walter wrote: Not all endpoints have to be available in the current configuration. If you show me the output for your device I can tell you what is available under which condition. Thanks, output

<    1   2   3   4   >