Date: Sun, 13 Aug 2006 00:49:51 +0300 From: Niki Denev <nike_d@tormentor.totalterror.net> To: John-Mark Gurney <gurney_j@resnet.uoregon.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: jkh weird problem (reading pci device memory) [ Success story ! ] Message-ID: <cone.1155419391.663450.6943.1001@tormentor.totalterror.net> References: <44D4A5DC.7080403@cytexbg.com> <200608071527.50711.jhb@freebsd.org> <44DD9476.7020706@cytexbg.com> <20060812180934.GN99774@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cone.1155419391.663450.6943.1001>