Add missing SPDX identifiers
This commit is contained in:
committed by
Jeremy Soller
parent
3e742b0da7
commit
3e154d7f00
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
cargo build --release --manifest-path tool/Cargo.toml
|
cargo build --release --manifest-path tool/Cargo.toml
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
#include <board/flash.h>
|
#include <board/flash.h>
|
||||||
#include <board/keymap.h>
|
#include <board/keymap.h>
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use hidapi::HidDevice;
|
use hidapi::HidDevice;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use hwio::{Io, Pio};
|
use hwio::{Io, Pio};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
fs,
|
fs,
|
||||||
io::{
|
io::{
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
const SMFI_CMD_BASE: u16 = 0xE00;
|
const SMFI_CMD_BASE: u16 = 0xE00;
|
||||||
const SMFI_CMD_SIZE: usize = 0x100;
|
const SMFI_CMD_SIZE: usize = 0x100;
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
io,
|
io,
|
||||||
net::UdpSocket,
|
net::UdpSocket,
|
||||||
@ -40,7 +42,7 @@ impl AccessLpcSim {
|
|||||||
"Socket request incorrect size"
|
"Socket request incorrect size"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut response = [0];
|
let mut response = [0];
|
||||||
if self.socket.recv(&mut response)? != response.len() {
|
if self.socket.recv(&mut response)? != response.len() {
|
||||||
return Err(io::Error::new(
|
return Err(io::Error::new(
|
||||||
@ -48,14 +50,14 @@ impl AccessLpcSim {
|
|||||||
"Socket response incorrect size"
|
"Socket response incorrect size"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(response[0])
|
Ok(response[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn inb(&mut self, addr: u16) -> Result<u8, Error> {
|
pub fn inb(&mut self, addr: u16) -> Result<u8, Error> {
|
||||||
Ok(self.transaction(0x01, addr, 0)?)
|
Ok(self.transaction(0x01, addr, 0)?)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn outb(&mut self, addr: u16, value: u8) -> Result<(), Error> {
|
pub fn outb(&mut self, addr: u16, value: u8) -> Result<(), Error> {
|
||||||
self.transaction(0x02, addr, value)?;
|
self.transaction(0x02, addr, value)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
use downcast_rs::Downcast;
|
use downcast_rs::Downcast;
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#[cfg(not(feature = "std"))]
|
#[cfg(not(feature = "std"))]
|
||||||
use alloc::{
|
use alloc::{
|
||||||
boxed::Box,
|
boxed::Box,
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
/// Errors returned by operations
|
/// Errors returned by operations
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
/// Parses firmware information from a firmware ROM
|
/// Parses firmware information from a firmware ROM
|
||||||
pub struct Firmware<'a> {
|
pub struct Firmware<'a> {
|
||||||
pub board: &'a [u8],
|
pub board: &'a [u8],
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Error,
|
Error,
|
||||||
Pmc,
|
Pmc,
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
//! Library for accessing System76 ECs
|
//! Library for accessing System76 ECs
|
||||||
//! First, construct an access method, using an object implementing the `Access` trait. Next, an Ec
|
//! First, construct an access method, using an object implementing the `Access` trait. Next, an Ec
|
||||||
//! object can be contructed, which exposes the command interface.
|
//! object can be contructed, which exposes the command interface.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use clap::{Arg, App, AppSettings, SubCommand};
|
use clap::{Arg, App, AppSettings, SubCommand};
|
||||||
use ectool::{
|
use ectool::{
|
||||||
Access,
|
Access,
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use hwio::{Io, Pio};
|
use hwio::{Io, Pio};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Error,
|
Error,
|
||||||
Timeout,
|
Timeout,
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use hwio::{Io, Pio};
|
use hwio::{Io, Pio};
|
||||||
|
|
||||||
/// Super I/O interface provided by LPC ECs
|
/// Super I/O interface provided by LPC ECs
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user