Re: Printer problems, please help

2000-11-29 Thread Gary T. Corcoran
Rink Springer wrote: - Original Message - From: "Mike Smith" [EMAIL PROTECTED] Sounds like you're overflowing the printer's buffer. When you say "it worked fine" under RedHat, did you actually attempt to print a large job? Yup, I did, and it worked nicely. The queue entry

Re: Module parameters? (WildWire DSL card driver)

2000-10-19 Thread Gary T. Corcoran
Terry Lambert wrote: Back in July I was asking about the capability to set parameters (variables) when loading my DSL driver module. There was a small flurry of activity about some initial ideas on how to do it, but I never heard any more about it. Did you (Mike, Warner, or anybody)

Re: Module parameters? (WildWire DSL card driver)

2000-10-16 Thread Gary T. Corcoran
Terry, First, thanks for the reply. Back in July I was asking about the capability to set parameters (variables) when loading my DSL driver module. There was a small flurry of activity about some initial ideas on how to do it, but I never heard any more about it. Did you (Mike,

Module parameters? (WildWire DSL card driver)

2000-10-13 Thread Gary T. Corcoran
Back in July I was asking about the capability to set parameters (variables) when loading my DSL driver module. There was a small flurry of activity about some initial ideas on how to do it, but I never heard any more about it. Did you (Mike, Warner, or anybody) have time to work on it? Did

Re: Booting Linux with FreeBSD booter (hack needed)

2000-08-31 Thread Gary T. Corcoran
[ I'm sending this to the list just in case anyone searches the email archives for an answer to a similar question. ] I wrote: Now since the MBR booter "knows" that you don't boot DOS/Windows from an "extended" partition (type 5), it doesn't offer it as a boot choice. Now I could

Booting Linux with FreeBSD booter (hack needed)

2000-08-30 Thread Gary T. Corcoran
I have a notebook PC with Windows, Linux, and FreeBSD on it. I installed the FreeBSD booter into the Master Boot Record (MBR). Using that, I can boot Windows or FreeBSD. But Linux doesn't show up as a boot choice, because I installed it into a "dos extended" partition (slice), to keep linux

Re: IPC, shared memory, syncronization AND threads...

2000-08-15 Thread Gary T. Corcoran
Peter Dufault wrote: you can have a Linda-like pool of work requests to hand out to a swarm of worker bees. ^^^ Could you please decode this for me? :) Thanks, Gary To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body

Re: Unknown driver gobbles resources??

2000-08-13 Thread Gary T. Corcoran
Devin Butterfield wrote: Hi all, In the process of learning device driver writing, I have written a simple skeleton driver for an isa PnP card I have. Although this driver works (successfully probes, attaches, and gets it's needed io resources) when compiled into the kernel, if I

Re: Module parameters?

2000-07-11 Thread Gary T. Corcoran
Archie Cobbs wrote: Warner Losh writes: In message [EMAIL PROTECTED] "Gary T. Corcoran" writes: : I was wondering if you (or anyone on this list) has had time : to add module parameters to kldload? (and before anyone suggests : it, sorry, but I am barely able to squeeze

Re: Module parameters?

2000-07-11 Thread Gary T. Corcoran
Warner Losh wrote: In message [EMAIL PROTECTED] Mike Smith writes: : In message [EMAIL PROTECTED] "Gary T. Corcoran" writes: : : No, I know it's not that easy. We need to be able to do things : : like have "TransmissionMode=4" on the kldload command line, and

Re: Module parameters?

2000-07-11 Thread Gary T. Corcoran
Mike Smith wrote: If you say "kldload foo", you load the file foo.ko. However, that file may contain more than one module. I didn't know that was possible (i.e. supported)... The hints mechanism is what we are currently using to pass in the information that used to be in the kernel

Re: Module parameters?

2000-07-11 Thread Gary T. Corcoran
Warner Losh wrote: Yes. You'd say hint.dslmodem.-1.TransmissionMode=LLC What's the "-1" in the above? But writing this, I thin that normal enums would want a specialized routine for doing this that would could pass a table to. Yes, a table of strings and enums seems like a

Re: Module parameters?

2000-07-11 Thread Gary T. Corcoran
Warner Losh wrote: Something like the following? Comments? struct driver_param { const char *name; int (*fnp)(const char *, void *, void *); size_t off; void *argp; }; Perhaps instead of the "size_t off" above, which from the code below tied us

Module parameters?

2000-07-07 Thread Gary T. Corcoran
Mike, A couple of months ago we spoke about my needing the ability to set module parameters during a kldload, and you indicated that you would be working on them for FreeBSD 4.1. I've since progressed my DSL driver to the point where it works in all the modes I need (same as the Linux driver),

Re: Way off-topic, but anybody know how to resurrect files from FAT-12?

2000-06-12 Thread Gary T. Corcoran
"Jordan K. Hubbard" wrote: I'm sitting here in Seoul, Korea (which is very nice, by the way) and I've just managed to delete all 82 images of Kyoto off the FAT-12 format Smartcard they were on. Wh! Way back in the Dark Ages I used to hack on FAT-12 code... Going *way* back in the

Re: Creating a system to boot 4 different OS types.

2000-05-29 Thread Gary T. Corcoran
Sergey Babkin wrote: Steven Alexander wrote: I've had problems getting Windows NT to boot using bootloaders from other OSes. I'd suggest installing NT last and putting it on the first partition. The partition number does not really matter, what really matters is that Windows wants

Re: Creating a system to boot 4 different OS types.

2000-05-28 Thread Gary T. Corcoran
Steve Hill wrote: Well, I am getting ready to attempt a quad-boot system. I wish to boot one of the following configurations: First CONFIG: - WinNT - FreeBSD - Linux - NetBSD Second CONFIG: - WinNT - FreeBSD - Linux - OpenBSD The

Re: kernel file I/O

2000-04-14 Thread Gary T. Corcoran
Parthasarathy M. Aji wrote: Hey All, I know how to read and write to a text file in the user level , but I am assigned the task of reading data from a file while writing a kernel level C program. I don't know what functions to use, can any of you help me. If you can point me to some web

Setting device options

2000-04-13 Thread Gary T. Corcoran
Now that my device driver basically works (I can successfully do pings and ftp transfers through it) using default settings, I'd like to start polishing it up a bit... This is a driver for a DSL device (Lucent WildWire), and our driver has lots of options because there are many "flavors" of DSL

Re: Setting device options

2000-04-13 Thread Gary T. Corcoran
Warner, Two options. Once is that you can get hints, the other is that you can get environment variables. The third is to have sysctls, but those can't be set until after the driver has finished loading. Which one do you want me to talk about? I'm sorry, but I don't know what "hints"

Re: Setting device options

2000-04-13 Thread Gary T. Corcoran
Mike Smith wrote: So, I want to know how I can "automagically" set the device options, every time a user kldload's the device driver. If you want to support this mode of operation, you really don't have a lot of options right now. Well, teaching kldload about module parameters would

Re: [Fwd: PCI DMA Questions]

2000-04-12 Thread Gary T. Corcoran
Warner Losh wrote: Original Message Subject: PCI DMA Questions I'm debugging a hunk of PCI hardware that I have under NDA. It doesn't seem to be initiating DMA transfers. This may be a hardware problem, but before I go back to the vendor, I want to make sure that I'm

Fatal trap 12 in arpintr in FreeBSD 4.0-Release

2000-04-10 Thread Gary T. Corcoran
As I mentioned the other day, after installing FreeBSD 4.0-Release I started getting random spontaneous reboots while in X (after running FreeBSD 3.4-Release for 2 months without any problems). Now that I've started debugging my driver, I enabled DDB, and now instead of rebooting I'm crashing

Re: How to get multiple PCI I/O base addresses in attach()?

2000-04-06 Thread Gary T. Corcoran
Mike Smith wrote: You're probably looking at code that thinks it can do "inb" and so forth; Yep, more or less. That is, sprinkled throughout the code, there are things of the form (just to give 1 example): NdisRawReadPortUchar( (OneOfTheBaseAddresses + SomeOffset), variable); sorry, we

Re: How to get multiple PCI I/O base addresses in attach()?

2000-04-06 Thread Gary T. Corcoran
Warner Losh wrote: In message [EMAIL PROTECTED] "Gary T. Corcoran" writes: : #define NdisRawReadPortUchar( _port, _ptr) *(_ptr) = inb((_port)) Yes. The bus_space_handle_t that rman_get_bushandle returns on the i386 is the portnumber in I/O space. However, you'll need a sep

How to get multiple PCI I/O base addresses in attach()?

2000-04-05 Thread Gary T. Corcoran
I installed FreeBSD 4.0 and I'm trying to write the attach() routine for my device driver, to be compiled as a loadable module. In 4.0 the attach routine only gets passed a dev pointer, not a PCI configuration pointer. My PCI device has up to 6 I/O ranges, and I need to get the base addresses

Help? Device driver 'make depend' errors from comments

2000-04-04 Thread Gary T. Corcoran
Since I received exactly ZERO responses to my plea for help in making my network device driver a loadable module, I'm now trying to compile my driver into the kernel. First, I made up a makefile and got my driver compiling cleanly standalone in my directory. So the code is known good with

Re: Help? Device driver 'make depend' errors from comments

2000-04-04 Thread Gary T. Corcoran
Mike Smith wrote: Go back to the module if this is for 4.x; I originally asked about making a network driver module for 3.4. I was hoping for either a "here's how you do it" or at least an "it's not possible with 3.4" response... Now this is a common codebase for this driver, which

How to make a PCI network device loadable module?

2000-03-27 Thread Gary T. Corcoran
I'd like to know how to make the network device driver I'm working on a loadable module. It's for a PCI device. I was unable to find any examples of PCI network modules under /sys/pci. The examples under /usr/share/examples/kld are not very helpful either for a PCI network device. It appears I

Re: How to read a file from a device driver?

2000-03-20 Thread Gary T. Corcoran
Darrell, I'm trying to initialize a network device, and I'm trying to download code *into* my device from some binary system files. There is no "user space" or user process, for that matter, to deal with at this point. I just want to (at this step) open a file(s) directly from my

How to read a file from a device driver?

2000-03-17 Thread Gary T. Corcoran
Can someone please tell me how I can read a file from a device driver in FreeBSD? I need to download 2 or 3 relatively-large code files to my device, choosing from amongst several different files depending on which mode I'm operating in. Therefore compiling-in the code is not a reasonable

Re: How to read a file from a device driver?

2000-03-17 Thread Gary T. Corcoran
Alfred, Can someone please tell me how I can read a file from a device driver in FreeBSD? I need to download 2 or 3 relatively-large code files to my device, choosing from amongst several different files depending on which mode I'm operating in. Therefore compiling-in the code is not

Re: How to read a file from a device driver?

2000-03-17 Thread Gary T. Corcoran
"Matthew N. Dodd" wrote: On Fri, 17 Mar 2000, Gary T. Corcoran wrote: I'm trying to initialize a network device, and I'm trying to download code *into* my device from some binary system files. There is no "user space" or user process, for that matter, to deal wit