From rubini@gnu.org Tue, 18 Jul 2000 10:15:02 +0200
Date: Tue, 18 Jul 2000 10:15:02 +0200
From: Alessandro Rubini rubini@gnu.org
Subject: [Pxc] new pxc available on CVS

Hello.
I'm posting to -announce too, even if there is no new tarball available.

During the weekend I managed to run my non-PXC200 Bt848 and Bt878 devices
using the pxc device driver. The current code is committed to CVS
and can be downloaded from my own box:

	% cvs -d :pserver:cvs@gnu.systemy.it:/data/cvs login
	(Logging in to cvs@gnu.systemy.it)
	CVS password: (type "cvs" here)
	% cvs -d :pserver:cvs@gnu.systemy.it:/data/cvs checkout pxc

Today and tomorrow I'll work to make single-frame acquisition possible.
This means that reading from the p?m nodes will return a whole frame
(field) instead of the snapshot of a continuous-grabbing DMA buffer.
When this is ready, and unless I get bug reportd about the currenct code,
I'll upload a new tarball.

/alessandro





From rubini@gnu.org  Wed Jul 19 21:45:48 2000
Date: Wed, 19 Jul 2000 22:45:48 +0200
From: Alessandro Rubini rubini@gnu.org
Subject: [Pxc] pxc-snapshot-000719.tar.gz

I just uploaded pxc-snapshot-000719.tar.gz to ftp.systemy.it/pub/develop .

It should reach the mirror sites in a while. Active mirrors are:
	ftp://ftp.systemy.it/pub/develop (original place)
	ftp://animal.unipv.it/pub/people/rubini (nightly mirror)
	ftp://ftp.linux.it/pub/People/Rubini (nightly mirror)

ftp.prosa.it is currently *not* mirroring my stuff (and it has not been
since June 5 <g>).

The snapshot implements "sane grabbing", something that should had
been there from the beginning. Instead of using continuous grabbing
for everything, the driver now grabs a single frame or field and then
stops DMA. So you'll read a single image from the pgm/ppm nodes even
if you read slowly. The raw entry points behave in the usual way.

While I found that the difference is visible, even with pxc_live or
pxc_xgrab, I'd like some feedback on this stuff, especially from
Daniel Senie.

This is not an official release as I want to add images to the
documentation before making 0.28 (which I must do shortly anyway to
include the package in an acquisition system I sell). No other
features are planned for 0.28 besides the docs, though. So this may be
considered "pre-0.28-final".

Enjoy (hopefully :)
/alessandro




From dts@senie.com  Fri Jul 21 23:00:22 2000
Date: Fri, 21 Jul 2000 18:00:22 -0400
From: Daniel Senie dts@senie.com
Subject: [Pxc] pxc-snapshot-000719.tar.gz

This is a multi-part message in MIME format.
--------------EA72267D7E36C82E89CB1271
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I got a lot of compiler errors. See the attached file. Not sure what's
different. The Makefile is identical.

Dan

-- 
-----------------------------------------------------------------
Daniel Senie                                        dts@senie.com
Amaranth Networks Inc.                    http://www.amaranth.com
--------------EA72267D7E36C82E89CB1271
Content-Type: text/plain; charset=us-ascii;
 name="out.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="out.txt"

cc -Wall -O3 -fomit-frame-pointer -I/usr/src/linux/include   -c main.c -o main.o
main.c: In function `px_free_dma':
main.c:97: warning: implicit declaration of function `iounmap_R5fb196d4'
main.c: In function `px_free_program_pages':
main.c:133: warning: implicit declaration of function `free_pages_R234535e0'
main.c:134: warning: implicit declaration of function `kfree_R037a0cba'
main.c: In function `px_allocate_programN':
main.c:176: warning: implicit declaration of function `kmalloc_R93d4cfe6'
main.c:176: warning: assignment makes pointer from integer without a cast
main.c: In function `px_reset_PIC':
main.c:215: warning: implicit declaration of function `__const_udelay_Reae3dfd6'
main.c:215: warning: implicit declaration of function `__udelay_R9e7d6bd0'
main.c: In function `px_i2c_command':
main.c:260: `jiffies_R0da02d67' undeclared (first use in this function)
main.c:260: (Each undeclared identifier is reported only once
main.c:260: for each function it appears in.)
main.c:279: warning: implicit declaration of function `printk_R1b7d4074'
main.c:283: warning: implicit declaration of function `schedule_R4292364c'
main.c: In function `px_i2c_read':
main.c:311: `jiffies_R0da02d67' undeclared (first use in this function)
main.c: In function `px_interrupt':
main.c:428: warning: implicit declaration of function `do_gettimeofday_R72270e35'
main.c:562: warning: implicit declaration of function `__wake_up_R7a24c808'
main.c: In function `px_shutdown':
main.c:619: warning: implicit declaration of function `free_irq_Rf20dabd8'
main.c:622: warning: implicit declaration of function `pci_read_config_word_R8764d15f'
main.c:629: warning: implicit declaration of function `pci_write_config_word_Rd9cc3b03'
main.c: In function `px_bringup':
main.c:649: warning: implicit declaration of function `request_irq_R0c60f2e0'
main.c: In function `px_init':
main.c:742: warning: implicit declaration of function `pci_read_config_byte_Re5ceea13'
main.c:745: warning: implicit declaration of function `pci_set_master_R040f6432'
main.c: In function `px_set_dma_parameters':
main.c:1112: warning: implicit declaration of function `sprintf_R3c2c5af5'
main.c: In function `px_initialize_operation':
main.c:1172: `jiffies_R0da02d67' undeclared (first use in this function)
main.c: In function `px_release_sequence':
main.c:1288: warning: implicit declaration of function `vfree_R2fd1d81c'
main.c: In function `px_new_sequence':
main.c:1306: warning: implicit declaration of function `vmalloc_Rd6ee688f'
main.c:1306: warning: assignment makes pointer from integer without a cast
main.c: In function `px_convert_rgb':
main.c:1496: warning: implicit declaration of function `__generic_copy_to_user_Rd523fdd3'
main.c: In function `px_read':
main.c:1546: warning: implicit declaration of function `interruptible_sleep_on_R648594ba'
main.c: In function `px_ioctl':
main.c:1704: `boot_cpu_data_R4d12d1d7' undeclared (first use in this function)
main.c:1704: warning: implicit declaration of function `__verify_write_R203afbeb'
main.c:1717: warning: implicit declaration of function `__generic_copy_from_user_R116166aa'
main.c: In function `px_mmap':
main.c:2016: warning: implicit declaration of function `remap_page_range_R69d01e73'
main.c: In function `px_freethem':
main.c:2133: warning: implicit declaration of function `pci_write_config_byte_Re84d5397'
main.c: In function `init_module':
main.c:2153: warning: implicit declaration of function `pcibios_present_R520a75b9'
main.c:2166: warning: implicit declaration of function `pci_find_device_R0ee75d4c'
main.c:2166: warning: assignment makes pointer from integer without a cast
main.c:2176: warning: assignment makes pointer from integer without a cast
main.c:2182: warning: implicit declaration of function `pci_read_config_dword_R2ca7e89f'
main.c:2208: warning: implicit declaration of function `register_chrdev_Rc8dc8350'
main.c:2230: warning: implicit declaration of function `unregister_chrdev_Rc192d491'
make: *** [main.o] Error 1

--------------EA72267D7E36C82E89CB1271--





From rubini@gnu.org  Fri Jul 21 23:13:25 2000
Date: Sat, 22 Jul 2000 00:13:25 +0200
From: Alessandro Rubini rubini@gnu.org
Subject: [Pxc] pxc-snapshot-000719.tar.gz

> I got a lot of compiler errors. See the attached file. Not sure what's
> different. The Makefile is identical.

Hmm... looks related to versioning. Are you running a versioned
kernel? Are teh "missing" symbols consistent with those on
/proc/ksyms?

Actually, what I did is add

	#include <linux/config.h>
	#ifdef CONFIG_MODVERSIONS
	#  define MODVERSIONS
	#  include <linux/modversions.h>
	#endif

in pxc200.h. You may try to remove these lines and recompile. But I'll
try to run a versioned kernel myself.

What I suspect is the placement of these lines is wrong: it should go
right after <linux/module.h>, not as late as they are now.


FYI: I just finished updating the documentation, which is available at
http://gnu.systemy.it/software/pxc/ as well. It's about 0.28, which is
not yet released. On Monday or so I'll double-check the debian
packages and upload.

/alessandro




From dts@senie.com  Fri Jul 21 23:26:55 2000
Date: Fri, 21 Jul 2000 18:26:55 -0400
From: Daniel Senie dts@senie.com
Subject: [Pxc] pxc-snapshot-000719.tar.gz

Commenting out those lines permitted a clean compile. Interesting.

Dan

-- 
-----------------------------------------------------------------
Daniel Senie                                        dts@senie.com
Amaranth Networks Inc.                    http://www.amaranth.com




From rubini@gnu.org  Mon Jul 24 07:51:30 2000
Date: Mon, 24 Jul 2000 08:51:30 +0200
From: Alessandro Rubini rubini@gnu.org
Subject: [Pxc] pxc-snapshot-000719.tar.gz

> Commenting out those lines permitted a clean compile. Interesting.

Well, this simple patch should fix the problem, building properly with
both versioned and non-versioned kernels.

Index: allocator.c
===================================================================
RCS file: /data/cvs/pxc/allocator.c,v
retrieving revision 1.4
diff -u -r1.4 allocator.c
--- allocator.c	1999/12/10 10:02:55	1.4
+++ allocator.c	2000/07/24 05:39:13
@@ -31,6 +31,13 @@
 
 #include <linux/version.h>
 
+/* deal with modversions */
+#include <linux/config.h>
+#ifdef CONFIG_MODVERSIONS
+#  define MODVERSIONS
+#  include <linux/modversions.h>
+#endif
+
 #include <linux/sched.h>
 #include <linux/kernel.h>
 #include <linux/fs.h>
Index: main.c
===================================================================
RCS file: /data/cvs/pxc/main.c,v
retrieving revision 1.22
diff -u -r1.22 main.c
--- main.c	2000/07/19 20:20:03	1.22
+++ main.c	2000/07/24 05:39:14
@@ -31,6 +31,14 @@
 
 #include <linux/module.h>
 
+/* deal with modversions */
+#include <linux/config.h>
+#ifdef CONFIG_MODVERSIONS
+#  define MODVERSIONS
+#  include <linux/modversions.h>
+#endif
+
+
 #include <linux/kernel.h> /* printk() */
 #include <linux/malloc.h> /* kmalloc() */
 #include <linux/fs.h>     /* everything... */
Index: pxc200.h
===================================================================
RCS file: /data/cvs/pxc/pxc200.h,v
retrieving revision 1.17
diff -u -r1.17 pxc200.h
--- pxc200.h	2000/07/19 20:20:03	1.17
+++ pxc200.h	2000/07/24 05:39:14
@@ -235,14 +235,6 @@
 
 #ifdef __KERNEL__ /* =================================================== */
 
-/* deal with modversions */
-#include <linux/config.h>
-#ifdef CONFIG_MODVERSIONS
-#  define MODVERSIONS
-#  include <linux/modversions.h>
-#endif
-
-
 
 #include <linux/delay.h>
 




From rubini@gnu.org  Mon Jul 24 17:53:42 2000
Date: Mon, 24 Jul 2000 18:53:42 +0200
From: Alessandro Rubini rubini@gnu.org
Subject: [Pxc] pxc-0.28 released

I just uploaded pxc-0.28, available from:

	ftp://ftp.systemy.it/pub/develop (original place)
	ftp://ftp.prosa.it/pub/people/rubini (nightly mirror)
	ftp://animal.unipv.it/pub/people/rubini (nightly mirror)
	ftp://ftp.linux.it/pub/People/Rubini (nightly mirror)

The file I uploaded are:

    704614 Jul 24 18:43 pxc-0.28.tar.gz
    144262 Jul 24 18:40 pxc-0.28-nodocs.tar.gz
    320720 Jul 24 18:27 pxc_0.28-1slink_i386.deb
     12530 Jul 24 18:28 pxc-modules-2.2.16_0.28-1_i386.deb

Please note that the pxc-apps package is for slink. I built it on
potato as well, but the pxc-0.28-1potato didn't install due to
problems in the info file. Source is available both with-compiled-docs
and pristine-source-with-no-docs.

Everything is committed to CVS as well and the docs are online
at http://gnu.systemy.it/software/


Changes in 0.28 over 0.27
-------------------------

009   support generic 848 devices (boiled down to be a pll problem)
035   support 878 devices (was trivial, it's same as 848-with pll)
037   documentation building has been enhanced and fixed
042   main.c and allocator.c: deal with <linux/modversions.h>
044   manage ioctl args in the range -128 127 as signed
045   added PLL support for single-crystal devicesq
046   re-enabled and documented  cmdline parameters, changed px_major to major
047   documented the new mailing list and the CVS repository
048   acquire one field/frame at a time with p?m files, added  PX_FLAG_CONTACQ
054   pxc_live now selects the mux as well



/alessandro




