Subject: Re: Status of Port (Sun3/50 bwtwo)
To: Gordon W. Ross <gwr@jericho.mc.com>
From: Harry Schreurs <HLS@oce.nl>
List: port-sun3
Date: 09/27/1994 18:14:37
> From: gwr@jericho.mc.com (Gordon W. Ross)
> Date sent: Tue, 30 Aug 94 11:23:08 EDT
> To: tuc@valhalla.stormking.com
> Copies to: port-sun3@sun-lamp.cs.berkeley.edu
> Subject: Status of Port (Sun3/50 bwtwo)
> Send reply to: gwr@mc.com (Gordon W. Ross)
> If someone would like to try it, I think it might be sufficient to
> just permanently allocate 128k of space from the kernel_map at the
> location of the Sun3/50 bwtwo before anything else tries to use it.
> The Sun3/50 bwtwo will end up mapped at 0x0E100000 (in kernel).
>
> I am not quite sure how to make the vm code do this, but I think
> it might look something like this:
>
> /* Somewhere before file-system buffer allocation... */
>
> if (cpu_machine_id == SUN3_MACH_50) {
> caddr_t bwtwo_beg = 0x0E100000; /* XXX macros... */
> caddr_t bwtwo_end = 0x0E120000; /* XXX macros... */
> caddr_t bwtwo_off;
> int ret;
>
> bwtwo_off = bwtwo_kva - VM_MIN_KERNEL_ADDRESS;
^
|
I don't quite understand what I should use for `bwtwo_kva'.
I can nowhere find a reference to this variable. Using the values
0x100000 and 0x0E100000 both result in 'can not reserve bwtwo memory'
> vm_map_lock(kernel_map);
> ret = vm_map_insert(kernel_map, NULL, bwtwo_off,
> bwtwo_beg, bwtwo_end);
What is vm_map_insert supposed to do?
What are the semantics of the various vm routines?
> vm_map_unlock(kernel_map);
> if (ret != KERN_SUCCESS) {
> printf("can not reserve bwtwo memory\n");
> /* XXX - Disable bwtwo somehow... */
> }
> }
>
> So, does anyone with a 3/50 care to try this out? You may need to
> study the VM code a bit to figure out how to make this work. Also,
> if you manage to reserve the frame buffer RAM, you will probably want
> to make it available to a bwtwo driver later...
>
> Volunteers?
>
> Gordon Ross
Kind Regrads,
Harry Schreurs
------------------------------------------------------------------------------
H.L Schreurs Email: hls@oce.nl
Business Unit Printing Systems Phone: +31 77 593775
Oce Nederland B.V. Fax: +31 77 595434
The Netherlands
`Copying an printing with the simple touch of genius'
------------------------------------------------------------------------------
###########################################################
# This note does not necessarily represent the position #
# of Oce-Nederland B.V. Therefore no liability or #
# responsibility for whatever will be accepted. #
###########################################################