History log of /haiku/src/add-ons/kernel/bus_managers/scsi/dma_buffer.cpp
Revision Date Author Comments
# 956f4507 22-May-2022 Trung Nguyen <trungnt282910@gmail.com>

kernel/vm: Remove default kernel read/write flags

`fix_protection` will not apply `B_KERNEL_READ_AREA` and
`B_KERNEL_WRITE_AREA` by default.

Kernel drivers that directly call `create_area` or `create_area_etc`
and do not pass any protection flags have been updated to
apply `B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA` instead.

Bug: #17751
Change-Id: I43e7ee6b5396e0309cdcff750e28262942c6d01c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5330
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# b4f4368b 11-Feb-2022 Augustin Cavalier <waddlesplash@gmail.com>

bus_managers/scsi: Use kernel mutex API directly and not through a wrapper.

No functional change intended.


# e5b82f80 28-May-2019 Jérôme Duval <jerome.duval@gmail.com>

scsi: change sg_count to uint32.

coding style.

Change-Id: Ie2e1a71e55b8fe8ac984d47b9b97409b1e436b69
Reviewed-on: https://review.haiku-os.org/c/1489
Reviewed-by: Rene Gollent <rene@gollent.com>


# f0c63f83 02-Jul-2013 Jérôme Duval <jerome.duval@gmail.com>

scsi: fixed 80 characters limit as noticed by John.


# 09bac83c 02-Jul-2013 Jérôme Duval <jerome.duval@gmail.com>

scsi: uses B_PRI* macros


# 0df5a3b0 09-Jun-2013 Rene Gollent <anevilyak@gmail.com>

Fix x86-64 build.


# 8239f032 09-Jun-2013 Jérôme Duval <jerome.duval@gmail.com>

scsi: improved code style and use of B_PRI macros


# d1f280c8 01-Apr-2012 Hamish Morrison <hamishm53@gmail.com>

Add support for pthread_attr_get/setguardsize()

* Added the aforementioned functions.
* create_area_etc() now takes a guard size parameter.
* The thread_info::stack_base/end range now refers to the usable range
only.


# 0063d2ba 20-Jul-2012 Alex Smith <alex@alex-smith.me.uk>

Various 64-bit fixes to SCSI and ATA bus managers/drivers.

Mostly compilation fixes, as well as a few 64-bit safety fixes. I've
briefly looked through everything for any obvious issues and fixed
the ones I've found, and it seems like they're working properly, though
there could be some more well hidden ones that I've missed.


# 9fb2d737 23-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Replaced B_32_BIT_MEMORY by B_32_BIT_FULL_LOCK and B_32_BIT_CONTIGUOUS, so
the constraint can be expressed more precisely. ATM B_32_BIT_FULL_LOCK is
implemented as B_32_BIT_CONTIGUOUS when B_HAIKU_PHYSICAL_BITS > 32, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37226 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 160c9c66 21-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

scsi_alloc_dma_buffer():
* Use create_area_etc() instead of create_area() so we don't have to deal
with the physical address restrictions by hand.
* Force physical addresses < 4 GB for the time being.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37209 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 297bfa1a 10-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Converted sources that include the private <vm/vm.h> to C++. Fixes the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37081 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f0c63f83d2cfb8bbf5f7ad1079bd8aa6c3c6ec49 02-Jul-2013 Jérôme Duval <jerome.duval@gmail.com>

scsi: fixed 80 characters limit as noticed by John.


# 09bac83c5d1eb0d3e421d04b97409098faa6766d 02-Jul-2013 Jérôme Duval <jerome.duval@gmail.com>

scsi: uses B_PRI* macros


# 0df5a3b0cbaf2e6bfeee50931a86c1d03863188d 09-Jun-2013 Rene Gollent <anevilyak@gmail.com>

Fix x86-64 build.


# 8239f0320d8b32ddc648fc2f95a529a7f1cc0bdd 09-Jun-2013 Jérôme Duval <jerome.duval@gmail.com>

scsi: improved code style and use of B_PRI macros


# d1f280c80529d5f0bc55030c2934f9255bc7f6a2 01-Apr-2012 Hamish Morrison <hamishm53@gmail.com>

Add support for pthread_attr_get/setguardsize()

* Added the aforementioned functions.
* create_area_etc() now takes a guard size parameter.
* The thread_info::stack_base/end range now refers to the usable range
only.


# 0063d2ba513ddb6bd54c329aa0d16c7e184862da 20-Jul-2012 Alex Smith <alex@alex-smith.me.uk>

Various 64-bit fixes to SCSI and ATA bus managers/drivers.

Mostly compilation fixes, as well as a few 64-bit safety fixes. I've
briefly looked through everything for any obvious issues and fixed
the ones I've found, and it seems like they're working properly, though
there could be some more well hidden ones that I've missed.


# 9fb2d73772382ea2ccfb62e912f9bfb9c39ac26d 23-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Replaced B_32_BIT_MEMORY by B_32_BIT_FULL_LOCK and B_32_BIT_CONTIGUOUS, so
the constraint can be expressed more precisely. ATM B_32_BIT_FULL_LOCK is
implemented as B_32_BIT_CONTIGUOUS when B_HAIKU_PHYSICAL_BITS > 32, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37226 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 160c9c661d522ab4f27b1c407884679e5484f996 21-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

scsi_alloc_dma_buffer():
* Use create_area_etc() instead of create_area() so we don't have to deal
with the physical address restrictions by hand.
* Force physical addresses < 4 GB for the time being.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37209 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 297bfa1ababaab0c24474d829a19f9e5fc869048 10-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Converted sources that include the private <vm/vm.h> to C++. Fixes the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37081 a95241bf-73f2-0310-859d-f6bbb57e9c96