Commit Graph

39 Commits

Author SHA1 Message Date
Tony Kuker 897f121ad6 fix comp error 2022-11-13 11:25:18 -06:00
Tony Kuker 53b9db81c2 added gpio save/restore logic 2022-11-09 21:27:40 -06:00
Tony Kuker 63687b86ca sel works... sorta 2022-11-09 21:27:40 -06:00
Uwe Seimet 84c017074a Added command byte count to SCSI command mapping (#966)
* Extended mapping table with command byte count

* Terminate early if command is unknown
2022-11-09 21:27:40 -06:00
Tony Kuker 9ca7d37307 add virtual gpiobus type 2022-11-06 19:51:42 -06:00
Tony Kuker 7ad9ba510a dynamic handling of bpi board types 2022-11-05 21:16:57 -05:00
Tony Kuker 530bfaff53 fix compile error 2022-11-05 20:44:33 -05:00
Tony Kuker 3086cd72ae add connection type argument 2022-11-05 20:34:09 -05:00
Tony Kuker 8b8d3c0f93 Merge branch 'develop' into feature_bpi4 2022-11-04 12:28:00 -05:00
Uwe Seimet c98c52ffb8
Cleaned up dependencies on controller manager (#964)
* Cleaned up dependencies on controller manager

* Removed global fields

* Simplified setting up RascsiResponse and RascsiExecutor

* Got rid of remaining raw pointers

* Use references instead of pointers

* Improved encapsulation
2022-11-04 08:22:32 +01:00
Uwe Seimet 83d1595a35
Improved testability of rascsi/rasctl/scsimon/rasdump, eliminated global fields (#960)
* Moved rascsi/rasctl/scsimon/rasdump.cpp to classes (for better testability)

* Moved bus.* to hal folder

* Removed some global variables

* Fixed code redundancies
2022-11-02 23:41:45 +01:00
Uwe Seimet c41373d9bd
Use lambdas for dispatcher, code cleanup, test updates (#958)
* Using lambdas instead of member function pointers simplifies the command dispatching and reduces the code volume

* Removed duplicate error handling

* Fix for issue #956

* Unit test updates

* Resolved SonarQube issues
2022-11-02 15:36:19 +01:00
Tony Kuker 4b7b8eec92 Merge branch 'develop' into feature_bpi3 2022-11-02 09:11:48 -05:00
akuker 31dd063611
Create devices after bus creation (#954) 2022-11-02 08:58:59 -05:00
Uwe Seimet 621cc7d5a2
Code cleanup, especially casts, lambdas, data types, encapsulation (#952)
* Unit test updates

* Lambda syntax cleanup

* Use new-style casts

* Use std::none_of when saving the cache

* Use to_integer instead of casts

* Use accessors for getting CDB data

* Made ctrl_t private

* Improved encapsulation

* Replaced pointers by references

* Removed all remaining occurrences of DWORD and BYTE, making os.h obsolete
2022-11-02 07:36:25 +01:00
Tony Kuker c4505bbb25 Cleanup init for loop 2022-10-31 15:19:59 -05:00
Tony Kuker fc27bb0631 Cleanup 2022-10-31 12:38:03 -05:00
Tony Kuker 983798b7c8 loopback works! 2022-10-31 12:14:45 -05:00
Tony Kuker 5730f7c4fe one test fix 2022-10-30 17:57:01 -05:00
Tony Kuker 61966a577b Basic discrete I/O seems to be partially working 2022-10-30 17:50:49 -05:00
Tony Kuker 245098be07 split out list devices 2022-10-30 12:22:54 -05:00
Tony Kuker 66a0448fa8 Split list devices function into its own file. Rasutil drove unnecessary dependencies on protobuf for scsiloop 2022-10-30 12:22:45 -05:00
Tony Kuker 97e63a7b01 Added calls to sunxi functions 2022-10-29 22:49:46 -05:00
Tony Kuker 535634d848 Now compiles 2022-10-29 22:14:11 -05:00
Tony Kuker 0c964578df first draft of pulling in sunxi functions 2022-10-29 21:10:02 -05:00
Tony Kuker c71c2a2b7a BPI mapping tables created 2022-10-29 20:57:59 -05:00
Uwe Seimet 9a4f433baf
Validate SCSI error codes (sense key, asc) in unit tests (issue #895) (#950) 2022-10-29 18:16:03 +02:00
Uwe Seimet f84a13b3e2
Prevent copying of files in use (#951) 2022-10-29 18:15:30 +02:00
Uwe Seimet 6e35577368
Removed wrong inheritance of SCDP and SCBR from Disk class (#948)
* Fixed TODOs, updated SCBR and SCDP

* Introduced ByteWriter interface

* Use accessors instead of directly accessing length/block fields
2022-10-29 18:10:00 +02:00
Tony Kuker 8c1f6401b4 Change signaltable to a vector 2022-10-28 21:13:07 -05:00
Tony Kuker 46507e8627 Update to work with clang++ 2022-10-28 20:56:10 -05:00
Tony Kuker feda864def Kludge scsimon back together so it compiles 2022-10-28 20:53:25 -05:00
Tony Kuker 6f855715a1 remove old header files 2022-10-27 21:32:23 -05:00
Tony Kuker bc13287ea3 Switch over data types to bus_type.h 2022-10-27 21:10:36 -05:00
Uwe Seimet c1f63c6745
Added missing command mapping for DEVICES_INFO (#947) 2022-10-27 16:31:32 +02:00
Uwe Seimet 2cecf4b35c
Image file deletion: Fixed error handling (#944)
* Fixed ID/LUN check when deleting image

* Updated error handling when deleting image file

* Prevent renaming of image file in use
2022-10-26 17:43:11 +02:00
Tony Kuker 1119ed90a6 First cut at moving to physical pin numbering 2022-10-25 21:30:48 -05:00
Tony Kuker 5dc1cb45df Merge branch 'develop' into feature_bpi4 2022-10-25 19:45:10 -05:00
Daniel Markstedt 08194af424
Move C++ code into cpp/ dir (#941)
- Moved C++ code to cpp/ from src/raspberrypi
- Related updates to Makefile, easyinstall.sh, and the github build rules
- Removed the native X68k C code in src/x68k from the repo
2022-10-25 12:59:30 -07:00