X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C762B0.99920672@onstor-exch02.onstor.net>; Fri, 9 Mar 2007 18:08:23 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: PROM load image comand
Date: Fri, 9 Mar 2007 18:08:21 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E02C1B66D@onstor-exch02.onstor.net>
In-Reply-To: <20070309160519.0bbc46a5@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: PROM load image comand
Thread-Index: Acdip8odBzNOWVRsSJ6fqEFjnr7+/QACJeXQ
From: "Warren Gale" <warren.gale@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>


Ok..  Got one for you..
It's on /n/users/warreng/bc_proms/4AndyS
      File r9kfimg.bin24Andy
Did have to NULL some of the fields.

Warren


-----Original Message-----
From: Andy Sharp=20
Sent: Friday, March 09, 2007 4:05 PM
To: Warren Gale
Subject: Re: PROM load image comand

No problemo, give me a call or I can try you at your desk.

Cheers,

a

On Fri, 9 Mar 2007 16:02:20 -0800 "Warren Gale"
<warren.gale@onstor.com> wrote:

>=20
> Andy,
>   Ok, I'm looking but it does not compute. (Sorry)
> I can't find anything in the PROM code that has any mention of=20
> "PMON Vectors".  Since I don't have any docs on PMON, (that I know of)
> do you have some thing that tells me a bit more on this?
>=20
> Looks like there are some jump tables, is this what it's like?
> I'm willing to try anything. (At least once)=20
> (I'm really just a diag guy..  single thread bit twiddling stuff)
> Thanks,
> Warren
>=20
> -----Original Message-----
> From: Andy Sharp=20
> Sent: Friday, March 09, 2007 3:32 PM
> To: Brian Stark
> Cc: Warren Gale
> Subject: Re: PROM load image comand
>=20
> Here is header file from the kernel:
>=20
> struct callvectors {
> 	int	(*open) (char*, int, int);
> 	int	(*close) (int);
> 	int	(*read) (int, void*, int);
> 	int	(*write) (int, void*, int);
> 	off_t	(*lseek) (int, off_t, int);
> 	int	(*printf) (const char*, ...);
> 	void	(*cacheflush) (void);
> 	char*	(*gets) (char*);
> 	union {
> 		int	(*smpfork) (unsigned long cp, char *sp);
> 		int	(*cpustart) (long, long, long, long);
> 	} _s;
> 	int	(*semlock) (int sem);
> 	void	(*semunlock) (int sem);
> };
>=20
>=20
> The printf function is the only one I really need, the others you
> could just leave as NULL.  Of course, the cpustart function would be
> good to play with.
>=20
> Cheers,
>=20
> a
>=20
> On Fri, 9 Mar 2007 15:28:08 -0800 "Brian Stark"
> <brian.stark@onstor.com> wrote:
>=20
> > Andy,
> >=20
> > I think Warren understands what you're looking for with the PMON
> > call vectors since you guys have talked about it, but I don't know
> > if he's scoped the work yet.  It really depends on how soon you need
> > something.
> >=20
> >=20
> > Brian
> >=20
> >=20
> >=20
> > > -----Original Message-----
> > > From: Andy Sharp=20
> > > Sent: Friday, March 09, 2007 3:17 PM
> > > To: Brian Stark
> > > Cc: Warren Gale
> > > Subject: Re: PROM load image comand
> > >=20
> > > On Fri, 9 Mar 2007 15:09:49 -0800 "Brian Stark"
> > > <brian.stark@onstor.com> wrote:
> > >=20
> > > Ditto...
> > >=20
> > > > See below...
> > > >=20
> > > >=20
> > > > > -----Original Message-----
> > > > > From: Andy Sharp
> > > > > Sent: Friday, March 09, 2007 2:53 PM
> > > > > To: Brian Stark
> > > > > Cc: Warren Gale
> > > > > Subject: Re: PROM load image comand
> > > > >=20
> > > > > On Fri, 9 Mar 2007 14:40:23 -0800 "Brian Stark"
> > > > > <brian.stark@onstor.com> wrote:
> > > > >=20
> > > > > > Crap, those damn interrupts get me every time.  The 16552
> > > > > interrupts
> > > > > > are not hooked up to anything because all of the PMC
> > > > > interrupts were
> > > > > > already taken when the 16552 was added.  Same goes for the
> > > > > Marvell GPP
> > > > > > pins that could be wired up as interrupt inputs.
> > > > >=20
> > > > > So use the same int as the mpsc ports on the marvell. =20
> > > > > Interrupt sharing is not a problem.  As long as they're
> > > > > "like" interrupts.
> > > >=20
> > > >=20
> > > > This may be feasible since the interrupts are tri-stated=20
> > > when inactive=20
> > > > (high).  I could wire up the 16552 interrupt directly to=20
> > > the Marvell=20
> > > > interrupt output that's used for the BSD mpsc port, which=20
> > > looks to be=20
> > > > CPU_INT0_L from the Marvell.  Then when this interrupt fires to
> > > > the PMC, you'd have to go poll the Marvell cause register and
> > > > then the 16552 port to see who generated it.  Is this cool?  If
> > > > so,=20
> > > I'll look=20
> > > > to see what the rework looks like.
> > > >=20
> > > > Of course, this is only needed if you can't get polling to work.
> > > > Software fixes for hardware mistakes are so much fun!
> > >=20
> > > I'll make you a deal: make me a PROM that gives me the=20
> > > standard PMON call vectors and I'll make the polling thing=20
> > > work.  Seriously.
> > >=20
> > > Cheers,
> > >=20
> > > a
> > >=20
