Skip to content

Commit

Permalink
reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Marks committed Mar 12, 2024
1 parent 3ddb986 commit a7eafd5
Show file tree
Hide file tree
Showing 316 changed files with 78,492 additions and 6,065 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Expand Up @@ -39,6 +39,7 @@ build/
*.tmp
*.tmp_proj
*.log
*.vs
*.vspscc
*.vssscc
.builds
Expand Down Expand Up @@ -195,4 +196,9 @@ Doxygen/
# inno installer output
windows/installer/Output/
# hacked exe files for different flavors
windows/installer/exe
windows/installer/exe
# Xcode
## User settings
xcuserdata/

Version.h
12 changes: 12 additions & 0 deletions .gitmodules
@@ -0,0 +1,12 @@
[submodule "macos/oui"]
path = macos/CLI/oui
url = git@github.com:Drive-Trust-Alliance/oui.git
branch = develop
[submodule "macos/CLI.OpenSource/oui"]
path = Customizations/macos/CLI.OpenSource/oui
url = git@github.com:Drive-Trust-Alliance/oui.git
branch = develop
[submodule "oui"]
path = oui
url = git@github.com:Drive-Trust-Alliance/oui.git
branch = develop
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/py.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions Common/ATAStructures.h
@@ -0,0 +1,50 @@
/* C:B**************************************************************************
This software is Copyright (c) 2014-2024 Bright Plaza Inc. <drivetrust@drivetrust.com>
This file is part of sedutil.
sedutil is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
sedutil is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with sedutil. If not, see <http://www.gnu.org/licenses/>.
* C:E********************************************************************** */
#pragma once
#if !defined(__ATASTRUCTURES_H_INCLUDED__)
#define __ATASTRUCTURES_H_INCLUDED__

/** ATA commands needed for TCG storage communication */
typedef enum _ATACOMMAND {
IF_RECV = 0x5c,
IF_SEND = 0x5e,
IDENTIFY = 0xec,
} ATACOMMAND;

typedef enum _ATAPROTOCOL {
// Per e.g. https://www.t10.org/ftp/t10/document.04/04-262r8.pdf
HARD_RESET = 0,
SRST = 1,
// 2 Reserved
NON_DATA = 3,
PIO_DATA_IN = 4,
PIO_DATA_OUT = 5,
DMA = 6,
DMA_QUEUED = 7,
DEVICE_DIAGNOSTIC = 8,
DEVICE_RESET = 9,
UDMA_DATA_IN = 10,
UDMA_DATA_OUT = 11,
FPDMA = 12,
// 13, 14 Reserved
RETURN_RESPONSE_INFORMATION = 15
} ATAPROTOCOL;

#endif //!defined(__ATASTRUCTURES_H_INCLUDED__)
2 changes: 1 addition & 1 deletion Common/Copyright.txt
@@ -1,5 +1,5 @@
/* C:B**************************************************************************
This software is Copyright 2014-2017 Bright Plaza Inc. <drivetrust@drivetrust.com>
This software is Copyright (c) 2014-2024 Bright Plaza Inc. <drivetrust@drivetrust.com>

This file is part of sedutil.

Expand Down
1 change: 1 addition & 0 deletions Common/Customizations
6 changes: 4 additions & 2 deletions Common/DtaAnnotatedDump.cpp
@@ -1,5 +1,5 @@
/* C:B**************************************************************************
This software is Copyright 2014-2017 Bright Plaza Inc. <drivetrust@drivetrust.com>
This software is Copyright (c) 2014-2024 Bright Plaza Inc. <drivetrust@drivetrust.com>
This file is part of sedutil.
Expand All @@ -21,6 +21,8 @@ along with sedutil. If not, see <http://www.gnu.org/licenses/>.

#include "os.h"
#include <stdio.h>
#include <log/log.h>

#include <iostream>
#include <fstream>
#include <iomanip>
Expand Down Expand Up @@ -356,7 +358,7 @@ uint8_t DtaAnnotatedDump(ATACOMMAND cmd, void * buffer, uint32_t bufferlen)
fprintf(stream, "<< 0x%2.2X\n >>\n", cmd);

// echo header
OPALHeader h;
DTA_Header h;
memcpy(&h, buffer, sizeof(h));
IFLOG(D1)
{
Expand Down
2 changes: 1 addition & 1 deletion Common/DtaAnnotatedDump.h
@@ -1,5 +1,5 @@
/* C:B**************************************************************************
This software is Copyright 2014-2017 Bright Plaza Inc. <drivetrust@drivetrust.com>
This software is Copyright (c) 2014-2024 Bright Plaza Inc. <drivetrust@drivetrust.com>
This file is part of sedutil.
Expand Down
26 changes: 26 additions & 0 deletions Common/DtaAuthorizeSedutilExecution.h
@@ -0,0 +1,26 @@
/* C:B**************************************************************************
This software is Copyright (c) 2014-2024 Bright Plaza Inc. <drivetrust@drivetrust.com>
This file is part of sedutil.
sedutil is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
sedutil is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with sedutil. If not, see <http://www.gnu.org/licenses/>.
* C:E********************************************************************** */

// Authorize this sedutil-cli run.
// Check licenses, etc., if appropriate.
//
// Returns true if OK to run, false if process should exit.
//
extern "C" bool authorize_sedutil_execution(int argc, char * argv[]);

0 comments on commit a7eafd5

Please sign in to comment.