main.c (2703d4b2e673cc240ad06d79d131fd1d0f77d65d) | main.c (827eef51f8dd9a4ab62b4ad270c15472f46938f2) |
---|---|
1/* 2 * 3 * Intel Management Engine Interface (Intel MEI) Linux driver 4 * Copyright (c) 2003-2012, Intel Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. --- 448 unchanged lines hidden (view full) --- 457 if (rets == 0 || dev->mei_host_buffer_is_empty == false) { 458 write_cb->buf_idx = 0; 459 mei_hdr.msg_complete = 0; 460 cl->writing_state = MEI_WRITING; 461 goto out; 462 } 463 464 dev->mei_host_buffer_is_empty = false; | 1/* 2 * 3 * Intel Management Engine Interface (Intel MEI) Linux driver 4 * Copyright (c) 2003-2012, Intel Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. --- 448 unchanged lines hidden (view full) --- 457 if (rets == 0 || dev->mei_host_buffer_is_empty == false) { 458 write_cb->buf_idx = 0; 459 mei_hdr.msg_complete = 0; 460 cl->writing_state = MEI_WRITING; 461 goto out; 462 } 463 464 dev->mei_host_buffer_is_empty = false; |
465 if (length > mei_hbuf_max_data(dev)) { 466 mei_hdr.length = mei_hbuf_max_data(dev); | 465 if (length > mei_hbuf_max_len(dev)) { 466 mei_hdr.length = mei_hbuf_max_len(dev); |
467 mei_hdr.msg_complete = 0; 468 } else { 469 mei_hdr.length = length; 470 mei_hdr.msg_complete = 1; 471 } 472 mei_hdr.host_addr = cl->host_client_id; 473 mei_hdr.me_addr = cl->me_client_id; 474 mei_hdr.reserved = 0; --- 285 unchanged lines hidden (view full) --- 760} 761 762void mei_deregister(void) 763{ 764 misc_deregister(&mei_misc_device); 765 mei_misc_device.parent = NULL; 766} 767 | 467 mei_hdr.msg_complete = 0; 468 } else { 469 mei_hdr.length = length; 470 mei_hdr.msg_complete = 1; 471 } 472 mei_hdr.host_addr = cl->host_client_id; 473 mei_hdr.me_addr = cl->me_client_id; 474 mei_hdr.reserved = 0; --- 285 unchanged lines hidden (view full) --- 760} 761 762void mei_deregister(void) 763{ 764 misc_deregister(&mei_misc_device); 765 mei_misc_device.parent = NULL; 766} 767 |
768MODULE_LICENSE("GPL v2"); |
|
768 | 769 |