Re: [RFC v2 2/6] tpm: Use TPMState as a common struct

2020-02-25 Thread Auger Eric
Hi Phil, On 2/17/20 7:01 PM, Auger Eric wrote: > Hi Philippe, > > On 2/17/20 10:21 AM, Philippe Mathieu-Daudé wrote: >> Hi Eric, >> >> On 2/14/20 7:37 PM, Eric Auger wrote: >>> As we plan to introdce a SysBus TPM TIS device, let's >>> make the TPMState a common struct usable by both the >>>

Re: [RFC v2 2/6] tpm: Use TPMState as a common struct

2020-02-17 Thread Auger Eric
Hi Philippe, On 2/17/20 10:21 AM, Philippe Mathieu-Daudé wrote: > Hi Eric, > > On 2/14/20 7:37 PM, Eric Auger wrote: >> As we plan to introdce a SysBus TPM TIS device, let's >> make the TPMState a common struct usable by both the >> ISADevice and the SysBusDevice. TPMStateISA embeds the >>

Re: [RFC v2 2/6] tpm: Use TPMState as a common struct

2020-02-17 Thread Philippe Mathieu-Daudé
Hi Eric, On 2/14/20 7:37 PM, Eric Auger wrote: As we plan to introdce a SysBus TPM TIS device, let's make the TPMState a common struct usable by both the ISADevice and the SysBusDevice. TPMStateISA embeds the struct and inherits from the ISADevice. The prototype of functions bound to be used

Re: [RFC v2 2/6] tpm: Use TPMState as a common struct

2020-02-16 Thread Stefan Berger
On 2/14/20 1:37 PM, Eric Auger wrote: As we plan to introdce a SysBus TPM TIS device, let's make the TPMState a common struct usable by both the ISADevice and the SysBusDevice. TPMStateISA embeds the struct and inherits from the ISADevice. The prototype of functions bound to be used by both the

Re: [RFC v2 2/6] tpm: Use TPMState as a common struct

2020-02-14 Thread Philippe Mathieu-Daudé
On 2/14/20 7:37 PM, Eric Auger wrote: As we plan to introdce a SysBus TPM TIS device, let's typo "introduce" make the TPMState a common struct usable by both the ISADevice and the SysBusDevice. TPMStateISA embeds the struct and inherits from the ISADevice. The prototype of functions bound

[RFC v2 2/6] tpm: Use TPMState as a common struct

2020-02-14 Thread Eric Auger
As we plan to introdce a SysBus TPM TIS device, let's make the TPMState a common struct usable by both the ISADevice and the SysBusDevice. TPMStateISA embeds the struct and inherits from the ISADevice. The prototype of functions bound to be used by both the ISA and SysBus devices is changed to