jkh weird problem (reading pci device memory) [ Success story ! ]

Niki Denev nike_d at tormentor.totalterror.net
Sat Aug 12 21:49:57 UTC 2006


John-Mark Gurney writes:
> No, read_multi reads from the same location every time..  This is for
> things like a FIFO where the value can change each time, you want
> bus_read_region_1...   Read the bus_space(9) man page for more info
> about the differences between the two...
> 
> http://www.freebsd.org/cgi/man.cgi?query=bus_space&apropos=0&sektion=0&manpath=FreeBSD+6.1-RELEASE&format=html
> 
> -- 
>   John-Mark Gurney				Voice: +1 415 225 5579
> 
>      "All that I will do, has been done, All that I have, has not."

Oh, that's what i was looking for... thanks.

I'm very new to all this, and it seems like i overloaded myself with 
information, and began to lose details. ( next time i'll read more 
carefully, and will not use lame excuses like this :) )

However, the good news is that i made some progress and now i can talk to 
the 3G card! The tty code is still a mess, (well, not only the tty code 
is a mess :) ) and i can't start PPP session yet, but issuing AT commands 
and getting response from the card works!

phobos# uname -a
FreeBSD phobos 7.0-CURRENT FreeBSD 7.0-CURRENT #11: Fri Jun 30 09:11:17 EDT 2006 
root at phobos:/usr/obj/usr/src/sys/PHOBOS  i386

-> card insert here

nozomi0: <Option N.V. GlobeTrotter 3G+> mem 0xc0212000-0xc02127ff 
irq 11 at device 0.0 on cardbus0
nozomi0: card has 2048 bytes of memory
nozomi0: [GIANT-LOCKED]
nozomi0: Version of card: 3
nozomi0: Initialization OK

phobos# cu -l /dev/ttyN0
Connected
ati
Manufacturer: Option N.V.
Model: GlobeTrotter 3G+
Revision: 3.15.0Hd (Date: Feb 06 2006, Time: 12:53:15)

OK
~
[EOT]



Regards,
Niki Denev


P.S.: For those not reading the whole thread[s], this is my attempt
to port the linux (Nozomi)[1] driver for the latest generation of 3G 
(HSDPA/UMTS/GPRS) PCMCIA cards made by Option (also branded as Vodafone 
Mobile Connect) to FreeBSD.



More information about the freebsd-hackers mailing list