Re: inverse mapping from a struct console to device

2015-01-28 Thread Peter Hurley
Hi Jon, On 01/27/2015 03:42 PM, Jon Masters wrote: > On 01/27/2015 07:30 AM, Mark Rutland wrote: >> On Tue, Jan 27, 2015 at 11:54:18AM +, Jon Masters wrote: > >>> Here's an example of the data we get in the SPCR for reference: >>> >>> [0012] Serial Port Register : [Generic Addre

Re: inverse mapping from a struct console to device

2015-01-27 Thread Jon Masters
On 01/27/2015 07:30 AM, Mark Rutland wrote: > On Tue, Jan 27, 2015 at 11:54:18AM +, Jon Masters wrote: >> Here's an example of the data we get in the SPCR for reference: >> >> [0012] Serial Port Register : [Generic Address Structure] >> [0001] Space ID :

Re: inverse mapping from a struct console to device

2015-01-27 Thread Mark Rutland
On Tue, Jan 27, 2015 at 11:54:18AM +, Jon Masters wrote: > On 01/27/2015 05:14 AM, Mark Rutland wrote: > > On Tue, Jan 27, 2015 at 03:06:35AM +, Jon Masters wrote: > >> On 01/26/2015 03:50 PM, Mark Rutland wrote: > >>> On Mon, Jan 26, 2015 at 07:40:58PM +, Jon Masters wrote: > Hi F

Re: inverse mapping from a struct console to device

2015-01-27 Thread Jon Masters
On 01/27/2015 05:14 AM, Mark Rutland wrote: > On Tue, Jan 27, 2015 at 03:06:35AM +, Jon Masters wrote: >> On 01/26/2015 03:50 PM, Mark Rutland wrote: >>> On Mon, Jan 26, 2015 at 07:40:58PM +, Jon Masters wrote: Hi Folks, TLDR: I need a back reference from a console struct to

Re: inverse mapping from a struct console to device

2015-01-27 Thread Mark Rutland
On Tue, Jan 27, 2015 at 03:06:35AM +, Jon Masters wrote: > On 01/26/2015 03:50 PM, Mark Rutland wrote: > > On Mon, Jan 26, 2015 at 07:40:58PM +, Jon Masters wrote: > >> Hi Folks, > >> > >> TLDR: I need a back reference from a console struct to its device. I > >> can't see an easy way to do

Re: inverse mapping from a struct console to device

2015-01-26 Thread Jon Masters
On 01/26/2015 03:20 PM, Greg KH wrote: > On Mon, Jan 26, 2015 at 02:40:58PM -0500, Jon Masters wrote: >> I've a quick question. I have prototype code that parses an ACPI table >> known as the SPCR (Serial Port Console Redirection - exists on both x86 >> and ARM systems). It finds the correct seria

Re: inverse mapping from a struct console to device

2015-01-26 Thread Jon Masters
On 01/26/2015 03:50 PM, Mark Rutland wrote: > On Mon, Jan 26, 2015 at 07:40:58PM +, Jon Masters wrote: >> Hi Folks, >> >> TLDR: I need a back reference from a console struct to its device. I >> can't see an easy way to do this right now without adding one? > > I don't think that's quite what y

Re: inverse mapping from a struct console to device

2015-01-26 Thread Mark Rutland
On Mon, Jan 26, 2015 at 07:40:58PM +, Jon Masters wrote: > Hi Folks, > > TLDR: I need a back reference from a console struct to its device. I > can't see an easy way to do this right now without adding one? I don't think that's quite what you need. All you need is to be able to refer to the S

Re: inverse mapping from a struct console to device

2015-01-26 Thread Greg KH
On Mon, Jan 26, 2015 at 02:40:58PM -0500, Jon Masters wrote: > Hi Folks, > > TLDR: I need a back reference from a console struct to its device. I know I'm going to regret answering this vague question, but, what _exactly_ do you mean by "its device"? > I can't see an easy way to do this right no

inverse mapping from a struct console to device

2015-01-26 Thread Jon Masters
Hi Folks, TLDR: I need a back reference from a console struct to its device. I can't see an easy way to do this right now without adding one? I've a quick question. I have prototype code that parses an ACPI table known as the SPCR (Serial Port Console Redirection - exists on both x86 and ARM syst