tpm_nsc.c (c1b054d03f5b31c33eaa0b267c629b118eaf3790) | tpm_nsc.c (b4ed3e3cbb312869929cf4528d71e52629a6cacb) |
---|---|
1/* 2 * Copyright (C) 2004 IBM Corporation 3 * 4 * Authors: 5 * Leendert van Doorn <leendert@watson.ibm.com> 6 * Dave Safford <safford@watson.ibm.com> 7 * Reiner Sailer <sailer@watson.ibm.com> 8 * Kylene Hall <kjhall@us.ibm.com> --- 206 unchanged lines hidden (view full) --- 215 return count; 216} 217 218static void tpm_nsc_cancel(struct tpm_chip *chip) 219{ 220 outb(NSC_COMMAND_CANCEL, chip->vendor->base + NSC_COMMAND); 221} 222 | 1/* 2 * Copyright (C) 2004 IBM Corporation 3 * 4 * Authors: 5 * Leendert van Doorn <leendert@watson.ibm.com> 6 * Dave Safford <safford@watson.ibm.com> 7 * Reiner Sailer <sailer@watson.ibm.com> 8 * Kylene Hall <kjhall@us.ibm.com> --- 206 unchanged lines hidden (view full) --- 215 return count; 216} 217 218static void tpm_nsc_cancel(struct tpm_chip *chip) 219{ 220 outb(NSC_COMMAND_CANCEL, chip->vendor->base + NSC_COMMAND); 221} 222 |
223static u8 tpm_nsc_status(struct tpm_chip *chip) 224{ 225 return inb(chip->vendor->base + NSC_STATUS); 226} 227 |
|
223static struct file_operations nsc_ops = { 224 .owner = THIS_MODULE, 225 .llseek = no_llseek, 226 .open = tpm_open, 227 .read = tpm_read, 228 .write = tpm_write, 229 .release = tpm_release, 230}; --- 12 unchanged lines hidden (view full) --- 243}; 244 245static struct attribute_group nsc_attr_grp = { .attrs = nsc_attrs }; 246 247static struct tpm_vendor_specific tpm_nsc = { 248 .recv = tpm_nsc_recv, 249 .send = tpm_nsc_send, 250 .cancel = tpm_nsc_cancel, | 228static struct file_operations nsc_ops = { 229 .owner = THIS_MODULE, 230 .llseek = no_llseek, 231 .open = tpm_open, 232 .read = tpm_read, 233 .write = tpm_write, 234 .release = tpm_release, 235}; --- 12 unchanged lines hidden (view full) --- 248}; 249 250static struct attribute_group nsc_attr_grp = { .attrs = nsc_attrs }; 251 252static struct tpm_vendor_specific tpm_nsc = { 253 .recv = tpm_nsc_recv, 254 .send = tpm_nsc_send, 255 .cancel = tpm_nsc_cancel, |
256 .status = tpm_nsc_status, |
|
251 .req_complete_mask = NSC_STATUS_OBF, 252 .req_complete_val = NSC_STATUS_OBF, 253 .req_canceled = NSC_STATUS_RDY, 254 .attr_group = &nsc_attr_grp, 255 .miscdev = { .fops = &nsc_ops, }, 256}; 257 258static int __devinit tpm_nsc_init(struct pci_dev *pci_dev, --- 114 unchanged lines hidden --- | 257 .req_complete_mask = NSC_STATUS_OBF, 258 .req_complete_val = NSC_STATUS_OBF, 259 .req_canceled = NSC_STATUS_RDY, 260 .attr_group = &nsc_attr_grp, 261 .miscdev = { .fops = &nsc_ops, }, 262}; 263 264static int __devinit tpm_nsc_init(struct pci_dev *pci_dev, --- 114 unchanged lines hidden --- |