Date: Wed, 21 Jan 1998 01:36:40 -0800 From: Amancio Hasty <hasty@rah.star-gate.com> To: Lars Koeller <Lars.Koeller@HRZ.Uni-Bielefeld.DE> Cc: hackers@FreeBSD.ORG Subject: Re: ANNOUNCE: Fastvid module available! Message-ID: <199801210936.BAA03932@rah.star-gate.com> In-Reply-To: Your message of "Fri, 09 Jan 1998 08:00:43 %2B0100." <199801090700.AA299089244@pollux.hrz.uni-bielefeld.de>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Hi,
A couple of things I had to hack fastvid a little in order to get it
to compile on -current.
1. I would like to see a user land program set the values, for example:
./fastvid 0x9800000 00x4000000
2. Ability to set multiple ranges useful in my case because I have
Diamond Monster 3d and a Matrox Millenium.
3. Dump the registers
4. If the pci code is up to it it would be nice to dump the pci configuration
for all the devices and if possible properly identify the devices.
The probe code already does some of this so it should not be that
difficult if the pci code can return a list of currently installed pci
devices along with their respective configuration.
Tnks!
Amancio
[-- Attachment #2 --]
*** fastvid/fastvid.c Thu Jan 8 13:48:18 1998
--- fastvid.new/fastvid.c Wed Jan 21 01:33:39 1998
***************
*** 54,61 ****
*
* My video ram is at phys addr 0xe0000000, size 8MB
*/
! #define VIDPHYSADDR (0xe0000000)
#define VIDPHYSSIZE (0x800000)
#define MSRINDEX 5
#define WC 1
/*
--- 54,65 ----
*
* My video ram is at phys addr 0xe0000000, size 8MB
*/
! /* #define VIDPHYSADDR (0xe0000000)
#define VIDPHYSSIZE (0x800000)
+ */
+
+ #define VIDPHYSADDR (0xf9800000)
+ #define VIDPHYSSIZE (4096*1024)
#define MSRINDEX 5
#define WC 1
/*
***************
*** 78,84 ****
#include <sys/sysent.h>
#include <sys/lkm.h>
#include <sys/proc.h>
! #include <vm/lock.h>
#include <vm/vm.h>
#include <vm/vm_prot.h>
#include <vm/vm_page.h>
--- 82,88 ----
#include <sys/sysent.h>
#include <sys/lkm.h>
#include <sys/proc.h>
! #include <sys/lock.h>
#include <vm/vm.h>
#include <vm/vm_prot.h>
#include <vm/vm_page.h>
***************
*** 90,96 ****
#include <machine/clock.h>
static int load(struct lkm_table *lkmtp, int cmd);
! static int mycall(struct proc *p, void *uap, int *retval);
extern int fastvid_mod(struct lkm_table *lkmtp, int cmd, int ver);
static int unload(struct lkm_table *lkmtp, int cmd);
vm_offset_t contigaddr;
--- 94,101 ----
#include <machine/clock.h>
static int load(struct lkm_table *lkmtp, int cmd);
! static int mycall __P((struct proc *p, void *uap, int retval[]));
!
extern int fastvid_mod(struct lkm_table *lkmtp, int cmd, int ver);
static int unload(struct lkm_table *lkmtp, int cmd);
vm_offset_t contigaddr;
***************
*** 100,106 ****
0, mycall /* # of args, function pointer*/
};
! MOD_SYSCALL( "fastvid_mod", -1, &newent);
static struct {
int address;
--- 105,111 ----
0, mycall /* # of args, function pointer*/
};
! MOD_SYSCALL( fastvid_mod, -1, &newent);
static struct {
int address;
***************
*** 230,241 ****
#if 0
DISPATCH(lkmtp, cmd, ver, load, unload, lkm_nullcmd)
#endif
! MOD_DISPATCH(fastvid_mod,
! lkmtp, cmd, ver, load, unload, lkm_nullcmd)
! #if 0
MOD_DISPATCH(fastvid_mod, lkmtp, cmd, ver,
! fastvid_load, lkm_nullcmd, lkm_nullcmd)
! #endif
}
static int unload(struct lkm_table *lkmtp, int cmd)
--- 235,245 ----
#if 0
DISPATCH(lkmtp, cmd, ver, load, unload, lkm_nullcmd)
#endif
!
MOD_DISPATCH(fastvid_mod, lkmtp, cmd, ver,
! load, lkm_nullcmd, lkm_nullcmd)
!
!
}
static int unload(struct lkm_table *lkmtp, int cmd)
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801210936.BAA03932>
