tpm_atmel.c (4e0c1159d83a658d1ffba5bc3442f4ec4cadb436) | tpm_atmel.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> --- 104 unchanged lines hidden (view full) --- 113 return count; 114} 115 116static void tpm_atml_cancel(struct tpm_chip *chip) 117{ 118 outb(ATML_STATUS_ABORT, chip->vendor->base + 1); 119} 120 | 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> --- 104 unchanged lines hidden (view full) --- 113 return count; 114} 115 116static void tpm_atml_cancel(struct tpm_chip *chip) 117{ 118 outb(ATML_STATUS_ABORT, chip->vendor->base + 1); 119} 120 |
121static u8 tpm_atml_status(struct tpm_chip *chip) 122{ 123 return inb(chip->vendor->base + 1); 124} 125 |
|
121static struct file_operations atmel_ops = { 122 .owner = THIS_MODULE, 123 .llseek = no_llseek, 124 .open = tpm_open, 125 .read = tpm_read, 126 .write = tpm_write, 127 .release = tpm_release, 128}; --- 12 unchanged lines hidden (view full) --- 141}; 142 143static struct attribute_group atmel_attr_grp = { .attrs = atmel_attrs }; 144 145static struct tpm_vendor_specific tpm_atmel = { 146 .recv = tpm_atml_recv, 147 .send = tpm_atml_send, 148 .cancel = tpm_atml_cancel, | 126static struct file_operations atmel_ops = { 127 .owner = THIS_MODULE, 128 .llseek = no_llseek, 129 .open = tpm_open, 130 .read = tpm_read, 131 .write = tpm_write, 132 .release = tpm_release, 133}; --- 12 unchanged lines hidden (view full) --- 146}; 147 148static struct attribute_group atmel_attr_grp = { .attrs = atmel_attrs }; 149 150static struct tpm_vendor_specific tpm_atmel = { 151 .recv = tpm_atml_recv, 152 .send = tpm_atml_send, 153 .cancel = tpm_atml_cancel, |
154 .status = tpm_atml_status, |
|
149 .req_complete_mask = ATML_STATUS_BUSY | ATML_STATUS_DATA_AVAIL, 150 .req_complete_val = ATML_STATUS_DATA_AVAIL, 151 .req_canceled = ATML_STATUS_READY, 152 .attr_group = &atmel_attr_grp, 153 .miscdev = { .fops = &atmel_ops, }, 154}; 155 156static int __devinit tpm_atml_init(struct pci_dev *pci_dev, --- 88 unchanged lines hidden --- | 155 .req_complete_mask = ATML_STATUS_BUSY | ATML_STATUS_DATA_AVAIL, 156 .req_complete_val = ATML_STATUS_DATA_AVAIL, 157 .req_canceled = ATML_STATUS_READY, 158 .attr_group = &atmel_attr_grp, 159 .miscdev = { .fops = &atmel_ops, }, 160}; 161 162static int __devinit tpm_atml_init(struct pci_dev *pci_dev, --- 88 unchanged lines hidden --- |